diff options
| author | bors <bors@rust-lang.org> | 2024-01-05 04:51:55 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-01-05 04:51:55 +0000 |
| commit | 5113ed28ea1451a13eae3a05dca0dbabfd56f587 (patch) | |
| tree | c4edb2a07b2023ac8e393e3c4ce3b30657d5dd05 /compiler/rustc_lint/src/lib.rs | |
| parent | a59a98024e3fe317e37e218392f5c34e932b2394 (diff) | |
| parent | 26194a3ffaf14b86e78ddcd0f2f88c609624d14b (diff) | |
| download | rust-5113ed28ea1451a13eae3a05dca0dbabfd56f587.tar.gz rust-5113ed28ea1451a13eae3a05dca0dbabfd56f587.zip | |
Auto merge of #118297 - shepmaster:warn-dead-tuple-fields, r=WaffleLapkin
Merge `unused_tuple_struct_fields` into `dead_code` This implicitly upgrades the lint from `allow` to `warn` and places it into the `unused` lint group. [Discussion on Zulip](https://rust-lang.zulipchat.com/#narrow/stream/131828-t-compiler/topic/Moving.20.60unused_tuple_struct_fields.60.20from.20allow.20to.20warn)
Diffstat (limited to 'compiler/rustc_lint/src/lib.rs')
| -rw-r--r-- | compiler/rustc_lint/src/lib.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_lint/src/lib.rs b/compiler/rustc_lint/src/lib.rs index 93904fb5c56..76c630fc456 100644 --- a/compiler/rustc_lint/src/lib.rs +++ b/compiler/rustc_lint/src/lib.rs @@ -328,6 +328,7 @@ fn register_builtins(store: &mut LintStore) { store.register_renamed("disjoint_capture_migration", "rust_2021_incompatible_closure_captures"); store.register_renamed("or_patterns_back_compat", "rust_2021_incompatible_or_patterns"); store.register_renamed("non_fmt_panic", "non_fmt_panics"); + store.register_renamed("unused_tuple_struct_fields", "dead_code"); // These were moved to tool lints, but rustc still sees them when compiling normally, before // tool lints are registered, so `check_tool_name_for_backwards_compat` doesn't work. Use |
