We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e2c7e4 commit d254a5fCopy full SHA for d254a5f
compiler/rustc_lint_defs/src/builtin.rs
@@ -611,7 +611,6 @@ declare_lint! {
611
/// ### Example
612
///
613
/// ```rust
614
- /// #[warn(unused_tuple_struct_fields)]
615
/// struct S(i32, i32, i32);
616
/// let s = S(1, 2, 3);
617
/// let _ = (s.0, s.2);
@@ -626,7 +625,7 @@ declare_lint! {
626
625
/// removing the unused field(s) or, to preserve the numbering of the
627
/// remaining fields, change the unused field(s) to have unit type.
628
pub UNUSED_TUPLE_STRUCT_FIELDS,
629
- Allow,
+ Warn,
630
"detects tuple struct fields that are never read"
631
}
632
0 commit comments