@@ -5,61 +5,61 @@ LL | match Derive::Some(NoDerive) { ENUM => dbg!(ENUM), _ => panic!("whoops"
55 | ^^^^
66
77error: to use a constant of type `NoDerive` in a pattern, `NoDerive` must be annotated with `#[derive(PartialEq, Eq)]`
8- --> $DIR/reject_non_structural.rs:45 :28
8+ --> $DIR/reject_non_structural.rs:44 :28
99 |
1010LL | match Some(NoDerive) { FIELD => dbg!(FIELD), _ => panic!("whoops"), };
1111 | ^^^^^
1212
1313error: to use a constant of type `NoDerive` in a pattern, `NoDerive` must be annotated with `#[derive(PartialEq, Eq)]`
14- --> $DIR/reject_non_structural.rs:51 :27
14+ --> $DIR/reject_non_structural.rs:49 :27
1515 |
1616LL | match Some(NoDerive) {INDIRECT => dbg!(INDIRECT), _ => panic!("whoops"), };
1717 | ^^^^^^^^
1818
1919error: to use a constant of type `NoDerive` in a pattern, `NoDerive` must be annotated with `#[derive(PartialEq, Eq)]`
20- --> $DIR/reject_non_structural.rs:56 :36
20+ --> $DIR/reject_non_structural.rs:53 :36
2121 |
2222LL | match (None, Some(NoDerive)) { TUPLE => dbg!(TUPLE), _ => panic!("whoops"), };
2323 | ^^^^^
2424
2525error: to use a constant of type `NoDerive` in a pattern, `NoDerive` must be annotated with `#[derive(PartialEq, Eq)]`
26- --> $DIR/reject_non_structural.rs:61 :28
26+ --> $DIR/reject_non_structural.rs:57 :28
2727 |
2828LL | match Some(NoDerive) { TYPE_ASCRIPTION => dbg!(TYPE_ASCRIPTION), _ => panic!("whoops"), };
2929 | ^^^^^^^^^^^^^^^
3030
3131error: to use a constant of type `NoDerive` in a pattern, `NoDerive` must be annotated with `#[derive(PartialEq, Eq)]`
32- --> $DIR/reject_non_structural.rs:66 :36
32+ --> $DIR/reject_non_structural.rs:61 :36
3333 |
3434LL | match [None, Some(NoDerive)] { ARRAY => dbg!(ARRAY), _ => panic!("whoops"), };
3535 | ^^^^^
3636
3737error: to use a constant of type `NoDerive` in a pattern, `NoDerive` must be annotated with `#[derive(PartialEq, Eq)]`
38- --> $DIR/reject_non_structural.rs:71 :33
38+ --> $DIR/reject_non_structural.rs:65 :33
3939 |
4040LL | match [Some(NoDerive); 2] { REPEAT => dbg!(REPEAT), _ => panic!("whoops"), };
4141 | ^^^^^^
4242
4343error: to use a constant of type `NoDerive` in a pattern, `NoDerive` must be annotated with `#[derive(PartialEq, Eq)]`
44- --> $DIR/reject_non_structural.rs:71 :33
44+ --> $DIR/reject_non_structural.rs:65 :33
4545 |
4646LL | match [Some(NoDerive); 2] { REPEAT => dbg!(REPEAT), _ => panic!("whoops"), };
4747 | ^^^^^^
4848
4949error: to use a constant of type `NoDerive` in a pattern, `NoDerive` must be annotated with `#[derive(PartialEq, Eq)]`
50- --> $DIR/reject_non_structural.rs:79 :28
50+ --> $DIR/reject_non_structural.rs:71 :28
5151 |
5252LL | match Some(NoDerive) { NoDerive::ASSOC => dbg!(NoDerive::ASSOC), _ => panic!("whoops"), };
5353 | ^^^^^^^^^^^^^^^
5454
5555error: to use a constant of type `NoDerive` in a pattern, `NoDerive` must be annotated with `#[derive(PartialEq, Eq)]`
56- --> $DIR/reject_non_structural.rs:84 :28
56+ --> $DIR/reject_non_structural.rs:75 :28
5757 |
5858LL | match Some(NoDerive) { BLOCK => dbg!(BLOCK), _ => panic!("whoops"), };
5959 | ^^^^^
6060
6161warning: to use a constant of type `NoDerive` in a pattern, `NoDerive` must be annotated with `#[derive(PartialEq, Eq)]`
62- --> $DIR/reject_non_structural.rs:89 :29
62+ --> $DIR/reject_non_structural.rs:79 :29
6363 |
6464LL | match &Some(NoDerive) { ADDR_OF => dbg!(ADDR_OF), _ => panic!("whoops"), };
6565 | ^^^^^^^
@@ -72,65 +72,5 @@ LL | #![warn(indirect_structural_match)]
7272 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
7373 = note: for more information, see issue #62411 <https://github.com/rust-lang/rust/issues/62411>
7474
75- error: to use a constant of type `NoDerive` in a pattern, `NoDerive` must be annotated with `#[derive(PartialEq, Eq)]`
76- --> $DIR/reject_non_structural.rs:40:36
77- |
78- LL | match Derive::Some(NoDerive) { ENUM => dbg!(ENUM), _ => panic!("whoops"), };
79- | ^^^^
80-
81- error: to use a constant of type `NoDerive` in a pattern, `NoDerive` must be annotated with `#[derive(PartialEq, Eq)]`
82- --> $DIR/reject_non_structural.rs:45:28
83- |
84- LL | match Some(NoDerive) { FIELD => dbg!(FIELD), _ => panic!("whoops"), };
85- | ^^^^^
86-
87- error: to use a constant of type `NoDerive` in a pattern, `NoDerive` must be annotated with `#[derive(PartialEq, Eq)]`
88- --> $DIR/reject_non_structural.rs:51:27
89- |
90- LL | match Some(NoDerive) {INDIRECT => dbg!(INDIRECT), _ => panic!("whoops"), };
91- | ^^^^^^^^
92-
93- error: to use a constant of type `NoDerive` in a pattern, `NoDerive` must be annotated with `#[derive(PartialEq, Eq)]`
94- --> $DIR/reject_non_structural.rs:56:36
95- |
96- LL | match (None, Some(NoDerive)) { TUPLE => dbg!(TUPLE), _ => panic!("whoops"), };
97- | ^^^^^
98-
99- error: to use a constant of type `NoDerive` in a pattern, `NoDerive` must be annotated with `#[derive(PartialEq, Eq)]`
100- --> $DIR/reject_non_structural.rs:61:28
101- |
102- LL | match Some(NoDerive) { TYPE_ASCRIPTION => dbg!(TYPE_ASCRIPTION), _ => panic!("whoops"), };
103- | ^^^^^^^^^^^^^^^
104-
105- error: to use a constant of type `NoDerive` in a pattern, `NoDerive` must be annotated with `#[derive(PartialEq, Eq)]`
106- --> $DIR/reject_non_structural.rs:66:36
107- |
108- LL | match [None, Some(NoDerive)] { ARRAY => dbg!(ARRAY), _ => panic!("whoops"), };
109- | ^^^^^
110-
111- error: to use a constant of type `NoDerive` in a pattern, `NoDerive` must be annotated with `#[derive(PartialEq, Eq)]`
112- --> $DIR/reject_non_structural.rs:71:33
113- |
114- LL | match [Some(NoDerive); 2] { REPEAT => dbg!(REPEAT), _ => panic!("whoops"), };
115- | ^^^^^^
116-
117- error: to use a constant of type `NoDerive` in a pattern, `NoDerive` must be annotated with `#[derive(PartialEq, Eq)]`
118- --> $DIR/reject_non_structural.rs:71:33
119- |
120- LL | match [Some(NoDerive); 2] { REPEAT => dbg!(REPEAT), _ => panic!("whoops"), };
121- | ^^^^^^
122-
123- error: to use a constant of type `NoDerive` in a pattern, `NoDerive` must be annotated with `#[derive(PartialEq, Eq)]`
124- --> $DIR/reject_non_structural.rs:79:28
125- |
126- LL | match Some(NoDerive) { NoDerive::ASSOC => dbg!(NoDerive::ASSOC), _ => panic!("whoops"), };
127- | ^^^^^^^^^^^^^^^
128-
129- error: to use a constant of type `NoDerive` in a pattern, `NoDerive` must be annotated with `#[derive(PartialEq, Eq)]`
130- --> $DIR/reject_non_structural.rs:84:28
131- |
132- LL | match Some(NoDerive) { BLOCK => dbg!(BLOCK), _ => panic!("whoops"), };
133- | ^^^^^
134-
135- error: aborting due to 20 previous errors; 1 warning emitted
75+ error: aborting due to 10 previous errors; 1 warning emitted
13676
0 commit comments