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 /tests/ui/binding/or-pattern.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 'tests/ui/binding/or-pattern.rs')
| -rw-r--r-- | tests/ui/binding/or-pattern.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ui/binding/or-pattern.rs b/tests/ui/binding/or-pattern.rs index 47623a3d722..07559e414dc 100644 --- a/tests/ui/binding/or-pattern.rs +++ b/tests/ui/binding/or-pattern.rs @@ -1,7 +1,7 @@ // run-pass #![allow(non_camel_case_types)] -enum blah { a(isize, isize, #[allow(unused_tuple_struct_fields)] usize), b(isize, isize), c, } +enum blah { a(isize, isize, #[allow(dead_code)] usize), b(isize, isize), c, } fn or_alt(q: blah) -> isize { match q { blah::a(x, y, _) | blah::b(x, y) => { return x + y; } blah::c => { return 0; } } |
