@@ -5,61 +5,61 @@ LL | match Derive::Some(NoDerive) { ENUM => dbg!(ENUM), _ => panic!("whoops"
5
5
| ^^^^
6
6
7
7
error: 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
9
9
|
10
10
LL | match Some(NoDerive) { FIELD => dbg!(FIELD), _ => panic!("whoops"), };
11
11
| ^^^^^
12
12
13
13
error: 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
15
15
|
16
16
LL | match Some(NoDerive) {INDIRECT => dbg!(INDIRECT), _ => panic!("whoops"), };
17
17
| ^^^^^^^^
18
18
19
19
error: 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
21
21
|
22
22
LL | match (None, Some(NoDerive)) { TUPLE => dbg!(TUPLE), _ => panic!("whoops"), };
23
23
| ^^^^^
24
24
25
25
error: 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
27
27
|
28
28
LL | match Some(NoDerive) { TYPE_ASCRIPTION => dbg!(TYPE_ASCRIPTION), _ => panic!("whoops"), };
29
29
| ^^^^^^^^^^^^^^^
30
30
31
31
error: 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
33
33
|
34
34
LL | match [None, Some(NoDerive)] { ARRAY => dbg!(ARRAY), _ => panic!("whoops"), };
35
35
| ^^^^^
36
36
37
37
error: 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
39
39
|
40
40
LL | match [Some(NoDerive); 2] { REPEAT => dbg!(REPEAT), _ => panic!("whoops"), };
41
41
| ^^^^^^
42
42
43
43
error: 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
45
45
|
46
46
LL | match [Some(NoDerive); 2] { REPEAT => dbg!(REPEAT), _ => panic!("whoops"), };
47
47
| ^^^^^^
48
48
49
49
error: 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
51
51
|
52
52
LL | match Some(NoDerive) { NoDerive::ASSOC => dbg!(NoDerive::ASSOC), _ => panic!("whoops"), };
53
53
| ^^^^^^^^^^^^^^^
54
54
55
55
error: 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
57
57
|
58
58
LL | match Some(NoDerive) { BLOCK => dbg!(BLOCK), _ => panic!("whoops"), };
59
59
| ^^^^^
60
60
61
61
warning: 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
63
63
|
64
64
LL | match &Some(NoDerive) { ADDR_OF => dbg!(ADDR_OF), _ => panic!("whoops"), };
65
65
| ^^^^^^^
@@ -72,65 +72,5 @@ LL | #![warn(indirect_structural_match)]
72
72
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
73
73
= note: for more information, see issue #62411 <https://github.com/rust-lang/rust/issues/62411>
74
74
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
136
76
0 commit comments