Skip to content

Commit 876ee9f

Browse files
committed
Convert unused_tuple_struct_fields to warn-by-default
1 parent 16087ee commit 876ee9f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

compiler/rustc_lint_defs/src/builtin.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,6 @@ declare_lint! {
611611
/// ### Example
612612
///
613613
/// ```rust
614-
/// #[warn(unused_tuple_struct_fields)]
615614
/// struct S(i32, i32, i32);
616615
/// let s = S(1, 2, 3);
617616
/// let _ = (s.0, s.2);
@@ -626,7 +625,7 @@ declare_lint! {
626625
/// removing the unused field(s) or, to preserve the numbering of the
627626
/// remaining fields, change the unused field(s) to have unit type.
628627
pub UNUSED_TUPLE_STRUCT_FIELDS,
629-
Allow,
628+
Warn,
630629
"detects tuple struct fields that are never read"
631630
}
632631

0 commit comments

Comments
 (0)