Skip to content

Commit 69613bb

Browse files
committed
Bless ui test.
1 parent bb61842 commit 69613bb

File tree

2 files changed

+66
-11
lines changed

2 files changed

+66
-11
lines changed

src/test/ui/feature-gates/feature-gate-non_exhaustive_omitted_patterns_lint.rs

+5
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@
33
#![deny(non_exhaustive_omitted_patterns)]
44
//~^ WARNING unknown lint: `non_exhaustive_omitted_patterns`
55
//~| WARNING unknown lint: `non_exhaustive_omitted_patterns`
6+
//~| WARNING unknown lint: `non_exhaustive_omitted_patterns`
67
#![allow(non_exhaustive_omitted_patterns)]
78
//~^ WARNING unknown lint: `non_exhaustive_omitted_patterns`
89
//~| WARNING unknown lint: `non_exhaustive_omitted_patterns`
10+
//~| WARNING unknown lint: `non_exhaustive_omitted_patterns`
911

1012
fn main() {
1113
enum Foo {
@@ -17,6 +19,8 @@ fn main() {
1719
//~| WARNING unknown lint: `non_exhaustive_omitted_patterns`
1820
//~| WARNING unknown lint: `non_exhaustive_omitted_patterns`
1921
//~| WARNING unknown lint: `non_exhaustive_omitted_patterns`
22+
//~| WARNING unknown lint: `non_exhaustive_omitted_patterns`
23+
//~| WARNING unknown lint: `non_exhaustive_omitted_patterns`
2024
match Foo::A {
2125
Foo::A => {}
2226
Foo::B => {}
@@ -31,4 +35,5 @@ fn main() {
3135
}
3236
//~^^^ WARNING unknown lint: `non_exhaustive_omitted_patterns`
3337
//~| WARNING unknown lint: `non_exhaustive_omitted_patterns`
38+
//~| WARNING unknown lint: `non_exhaustive_omitted_patterns`
3439
}

src/test/ui/feature-gates/feature-gate-non_exhaustive_omitted_patterns_lint.stderr

+61-11
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ LL | #![deny(non_exhaustive_omitted_patterns)]
1010
= help: add `#![feature(non_exhaustive_omitted_patterns_lint)]` to the crate attributes to enable
1111

1212
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
1414
|
1515
LL | #![allow(non_exhaustive_omitted_patterns)]
1616
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -20,7 +20,7 @@ LL | #![allow(non_exhaustive_omitted_patterns)]
2020
= help: add `#![feature(non_exhaustive_omitted_patterns_lint)]` to the crate attributes to enable
2121

2222
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
2424
|
2525
LL | #[allow(non_exhaustive_omitted_patterns)]
2626
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -30,7 +30,7 @@ LL | #[allow(non_exhaustive_omitted_patterns)]
3030
= help: add `#![feature(non_exhaustive_omitted_patterns_lint)]` to the crate attributes to enable
3131

3232
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
3434
|
3535
LL | #[allow(non_exhaustive_omitted_patterns)]
3636
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -40,7 +40,7 @@ LL | #[allow(non_exhaustive_omitted_patterns)]
4040
= help: add `#![feature(non_exhaustive_omitted_patterns_lint)]` to the crate attributes to enable
4141

4242
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
4444
|
4545
LL | #[warn(non_exhaustive_omitted_patterns)]
4646
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -60,7 +60,7 @@ LL | #![deny(non_exhaustive_omitted_patterns)]
6060
= help: add `#![feature(non_exhaustive_omitted_patterns_lint)]` to the crate attributes to enable
6161

6262
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
6464
|
6565
LL | #![allow(non_exhaustive_omitted_patterns)]
6666
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -70,7 +70,7 @@ LL | #![allow(non_exhaustive_omitted_patterns)]
7070
= help: add `#![feature(non_exhaustive_omitted_patterns_lint)]` to the crate attributes to enable
7171

7272
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
7474
|
7575
LL | #[allow(non_exhaustive_omitted_patterns)]
7676
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -80,7 +80,7 @@ LL | #[allow(non_exhaustive_omitted_patterns)]
8080
= help: add `#![feature(non_exhaustive_omitted_patterns_lint)]` to the crate attributes to enable
8181

8282
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
8484
|
8585
LL | #[allow(non_exhaustive_omitted_patterns)]
8686
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -90,7 +90,7 @@ LL | #[allow(non_exhaustive_omitted_patterns)]
9090
= help: add `#![feature(non_exhaustive_omitted_patterns_lint)]` to the crate attributes to enable
9191

9292
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
9494
|
9595
LL | #[warn(non_exhaustive_omitted_patterns)]
9696
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -100,13 +100,13 @@ LL | #[warn(non_exhaustive_omitted_patterns)]
100100
= help: add `#![feature(non_exhaustive_omitted_patterns_lint)]` to the crate attributes to enable
101101

102102
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
104104
|
105105
LL | match Foo::A {
106106
| ^^^^^^ pattern `Foo::C` not covered
107107
|
108108
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
110110
|
111111
LL | enum Foo {
112112
| ---
@@ -119,6 +119,56 @@ LL ~ Foo::B => {}
119119
LL + Foo::C => todo!()
120120
|
121121

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
123173

124174
For more information about this error, try `rustc --explain E0004`.

0 commit comments

Comments
 (0)