@@ -10,7 +10,7 @@ LL | #![deny(non_exhaustive_omitted_patterns)]
10
10
= help: add `#![feature(non_exhaustive_omitted_patterns_lint)]` to the crate attributes to enable
11
11
12
12
warning: unknown lint: `non_exhaustive_omitted_patterns`
13
- --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:6 :1
13
+ --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:7 :1
14
14
|
15
15
LL | #![allow(non_exhaustive_omitted_patterns)]
16
16
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -20,7 +20,7 @@ LL | #![allow(non_exhaustive_omitted_patterns)]
20
20
= help: add `#![feature(non_exhaustive_omitted_patterns_lint)]` to the crate attributes to enable
21
21
22
22
warning: unknown lint: `non_exhaustive_omitted_patterns`
23
- --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:15 :5
23
+ --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:17 :5
24
24
|
25
25
LL | #[allow(non_exhaustive_omitted_patterns)]
26
26
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -30,7 +30,7 @@ LL | #[allow(non_exhaustive_omitted_patterns)]
30
30
= help: add `#![feature(non_exhaustive_omitted_patterns_lint)]` to the crate attributes to enable
31
31
32
32
warning: unknown lint: `non_exhaustive_omitted_patterns`
33
- --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:15 :5
33
+ --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:17 :5
34
34
|
35
35
LL | #[allow(non_exhaustive_omitted_patterns)]
36
36
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -40,7 +40,7 @@ LL | #[allow(non_exhaustive_omitted_patterns)]
40
40
= help: add `#![feature(non_exhaustive_omitted_patterns_lint)]` to the crate attributes to enable
41
41
42
42
warning: unknown lint: `non_exhaustive_omitted_patterns`
43
- --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:29 :9
43
+ --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:33 :9
44
44
|
45
45
LL | #[warn(non_exhaustive_omitted_patterns)]
46
46
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -60,7 +60,7 @@ LL | #![deny(non_exhaustive_omitted_patterns)]
60
60
= help: add `#![feature(non_exhaustive_omitted_patterns_lint)]` to the crate attributes to enable
61
61
62
62
warning: unknown lint: `non_exhaustive_omitted_patterns`
63
- --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:6 :1
63
+ --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:7 :1
64
64
|
65
65
LL | #![allow(non_exhaustive_omitted_patterns)]
66
66
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -70,7 +70,7 @@ LL | #![allow(non_exhaustive_omitted_patterns)]
70
70
= help: add `#![feature(non_exhaustive_omitted_patterns_lint)]` to the crate attributes to enable
71
71
72
72
warning: unknown lint: `non_exhaustive_omitted_patterns`
73
- --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:15 :5
73
+ --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:17 :5
74
74
|
75
75
LL | #[allow(non_exhaustive_omitted_patterns)]
76
76
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -80,7 +80,7 @@ LL | #[allow(non_exhaustive_omitted_patterns)]
80
80
= help: add `#![feature(non_exhaustive_omitted_patterns_lint)]` to the crate attributes to enable
81
81
82
82
warning: unknown lint: `non_exhaustive_omitted_patterns`
83
- --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:15 :5
83
+ --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:17 :5
84
84
|
85
85
LL | #[allow(non_exhaustive_omitted_patterns)]
86
86
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -90,7 +90,7 @@ LL | #[allow(non_exhaustive_omitted_patterns)]
90
90
= help: add `#![feature(non_exhaustive_omitted_patterns_lint)]` to the crate attributes to enable
91
91
92
92
warning: unknown lint: `non_exhaustive_omitted_patterns`
93
- --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:29 :9
93
+ --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:33 :9
94
94
|
95
95
LL | #[warn(non_exhaustive_omitted_patterns)]
96
96
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -100,13 +100,13 @@ LL | #[warn(non_exhaustive_omitted_patterns)]
100
100
= help: add `#![feature(non_exhaustive_omitted_patterns_lint)]` to the crate attributes to enable
101
101
102
102
error[E0004]: non-exhaustive patterns: `Foo::C` not covered
103
- --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:20 :11
103
+ --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:24 :11
104
104
|
105
105
LL | match Foo::A {
106
106
| ^^^^^^ pattern `Foo::C` not covered
107
107
|
108
108
note: `Foo` defined here
109
- --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:12 :15
109
+ --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:14 :15
110
110
|
111
111
LL | enum Foo {
112
112
| ---
@@ -119,6 +119,56 @@ LL ~ Foo::B => {}
119
119
LL + Foo::C => todo!()
120
120
|
121
121
122
- error: aborting due to previous error; 10 warnings emitted
122
+ warning: unknown lint: `non_exhaustive_omitted_patterns`
123
+ --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:3:1
124
+ |
125
+ LL | #![deny(non_exhaustive_omitted_patterns)]
126
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
127
+ |
128
+ = note: the `non_exhaustive_omitted_patterns` lint is unstable
129
+ = note: see issue #89554 <https://github.com/rust-lang/rust/issues/89554> for more information
130
+ = help: add `#![feature(non_exhaustive_omitted_patterns_lint)]` to the crate attributes to enable
131
+
132
+ warning: unknown lint: `non_exhaustive_omitted_patterns`
133
+ --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:7:1
134
+ |
135
+ LL | #![allow(non_exhaustive_omitted_patterns)]
136
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
137
+ |
138
+ = note: the `non_exhaustive_omitted_patterns` lint is unstable
139
+ = note: see issue #89554 <https://github.com/rust-lang/rust/issues/89554> for more information
140
+ = help: add `#![feature(non_exhaustive_omitted_patterns_lint)]` to the crate attributes to enable
141
+
142
+ warning: unknown lint: `non_exhaustive_omitted_patterns`
143
+ --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:17:5
144
+ |
145
+ LL | #[allow(non_exhaustive_omitted_patterns)]
146
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
147
+ |
148
+ = note: the `non_exhaustive_omitted_patterns` lint is unstable
149
+ = note: see issue #89554 <https://github.com/rust-lang/rust/issues/89554> for more information
150
+ = help: add `#![feature(non_exhaustive_omitted_patterns_lint)]` to the crate attributes to enable
151
+
152
+ warning: unknown lint: `non_exhaustive_omitted_patterns`
153
+ --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:17:5
154
+ |
155
+ LL | #[allow(non_exhaustive_omitted_patterns)]
156
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
157
+ |
158
+ = note: the `non_exhaustive_omitted_patterns` lint is unstable
159
+ = note: see issue #89554 <https://github.com/rust-lang/rust/issues/89554> for more information
160
+ = help: add `#![feature(non_exhaustive_omitted_patterns_lint)]` to the crate attributes to enable
161
+
162
+ warning: unknown lint: `non_exhaustive_omitted_patterns`
163
+ --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:33:9
164
+ |
165
+ LL | #[warn(non_exhaustive_omitted_patterns)]
166
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
167
+ |
168
+ = note: the `non_exhaustive_omitted_patterns` lint is unstable
169
+ = note: see issue #89554 <https://github.com/rust-lang/rust/issues/89554> for more information
170
+ = help: add `#![feature(non_exhaustive_omitted_patterns_lint)]` to the crate attributes to enable
171
+
172
+ error: aborting due to previous error; 15 warnings emitted
123
173
124
174
For more information about this error, try `rustc --explain E0004`.
0 commit comments