Skip to content

Commit da69c5e

Browse files
committed
update version and test
1 parent 62aa6b9 commit da69c5e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

clippy_lints/src/pub_underscore_fields.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ declare_clippy_lint! {
2424
/// _descriptor: usize,
2525
/// }
2626
/// ```
27-
#[clippy::version = "1.69.0"]
27+
#[clippy::version = "1.74.0"]
2828
pub PUB_UNDERSCORE_FIELDS,
2929
pedantic,
3030
"struct field prefixed with underscore and marked public"

tests/ui/pub_underscore_fields.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ LL | pub(super) _b: u8,
66
|
77
= help: consider removing the underscore, or making the field private
88
= note: `-D clippy::pub-underscore-fields` implied by `-D warnings`
9+
= help: to override `-D warnings` add `#[allow(clippy::pub_underscore_fields)]`
910

1011
error: field marked as public but also inferred as unused because it's prefixed with `_`
1112
--> $DIR/pub_underscore_fields.rs:14:13

0 commit comments

Comments
 (0)