11error: unexpected `,` in pattern
2-  --> $DIR/feature-gate-never_patterns.rs:36 :16
2+  --> $DIR/feature-gate-never_patterns.rs:34 :16
33 |
44LL | Some(_),
55 | ^
@@ -40,17 +40,7 @@ LL | !
4040 = help: add `#![feature(never_patterns)]` to the crate attributes to enable
4141
4242error[E0658]: `!` patterns are experimental
43-  --> $DIR/feature-gate-never_patterns.rs:15:13
44-  |
45- LL | !
46-  | ^
47-  |
48-  = note: see issue #118155 <https://github.com/rust-lang/rust/issues/118155> for more information
49-  = help: add `#![feature(never_patterns)]` to the crate attributes to enable
50-  = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
51- 
52- error[E0658]: `!` patterns are experimental
53-  --> $DIR/feature-gate-never_patterns.rs:22:13
43+  --> $DIR/feature-gate-never_patterns.rs:21:13
5444 |
5545LL | !
5646 | ^
@@ -59,17 +49,7 @@ LL | !
5949 = help: add `#![feature(never_patterns)]` to the crate attributes to enable
6050
6151error[E0658]: `!` patterns are experimental
62-  --> $DIR/feature-gate-never_patterns.rs:22:13
63-  |
64- LL | !
65-  | ^
66-  |
67-  = note: see issue #118155 <https://github.com/rust-lang/rust/issues/118155> for more information
68-  = help: add `#![feature(never_patterns)]` to the crate attributes to enable
69-  = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
70- 
71- error[E0658]: `!` patterns are experimental
72-  --> $DIR/feature-gate-never_patterns.rs:28:13
52+  --> $DIR/feature-gate-never_patterns.rs:26:13
7353 |
7454LL | ! => {}
7555 | ^
@@ -78,40 +58,34 @@ LL | ! => {}
7858 = help: add `#![feature(never_patterns)]` to the crate attributes to enable
7959
8060error: `match` arm with no body
81-  --> $DIR/feature-gate-never_patterns.rs:41 :9
61+  --> $DIR/feature-gate-never_patterns.rs:39 :9
8262 |
8363LL | Some(_)
8464 | ^^^^^^^- help: add a body after the pattern: `=> todo!(),`
8565
8666error: `match` arm with no body
87-  --> $DIR/feature-gate-never_patterns.rs:46 :9
67+  --> $DIR/feature-gate-never_patterns.rs:44 :9
8868 |
8969LL | Some(_) if false,
9070 | ^^^^^^^- help: add a body after the pattern: `=> todo!(),`
9171
9272error: `match` arm with no body
93-  --> $DIR/feature-gate-never_patterns.rs:48 :9
73+  --> $DIR/feature-gate-never_patterns.rs:46 :9
9474 |
9575LL | Some(_) if false
9676 | ^^^^^^^- help: add a body after the pattern: `=> todo!(),`
9777
9878error[E0658]: `!` patterns are experimental
99-  --> $DIR/feature-gate-never_patterns.rs:53 :13
79+  --> $DIR/feature-gate-never_patterns.rs:51 :13
10080 |
10181LL | Err(!),
10282 | ^
10383 |
10484 = note: see issue #118155 <https://github.com/rust-lang/rust/issues/118155> for more information
10585 = help: add `#![feature(never_patterns)]` to the crate attributes to enable
10686
107- error: `match` arm with no body
108-  --> $DIR/feature-gate-never_patterns.rs:53:9
109-  |
110- LL | Err(!),
111-  | ^^^^^^- help: add a body after the pattern: `=> todo!(),`
112- 
11387error[E0658]: `!` patterns are experimental
114-  --> $DIR/feature-gate-never_patterns.rs:58 :13
88+  --> $DIR/feature-gate-never_patterns.rs:55 :13
11589 |
11690LL | Err(!) if false,
11791 | ^
@@ -120,30 +94,24 @@ LL | Err(!) if false,
12094 = help: add `#![feature(never_patterns)]` to the crate attributes to enable
12195
12296error: `match` arm with no body
123-  --> $DIR/feature-gate-never_patterns.rs:58:9
124-  |
125- LL | Err(!) if false,
126-  | ^^^^^^- help: add a body after the pattern: `=> todo!(),`
127- 
128- error: `match` arm with no body
129-  --> $DIR/feature-gate-never_patterns.rs:69:9
97+  --> $DIR/feature-gate-never_patterns.rs:65:9
13098 |
13199LL | Some(_)
132100 | ^^^^^^^- help: add a body after the pattern: `=> todo!(),`
133101
134102error: `match` arm with no body
135-  --> $DIR/feature-gate-never_patterns.rs:75 :9
103+  --> $DIR/feature-gate-never_patterns.rs:71 :9
136104 |
137105LL | Some(_) if false
138106 | ^^^^^^^- help: add a body after the pattern: `=> todo!(),`
139107
140108error: a guard on a never pattern will never be run
141-  --> $DIR/feature-gate-never_patterns.rs:58 :19
109+  --> $DIR/feature-gate-never_patterns.rs:55 :19
142110 |
143111LL | Err(!) if false,
144112 | ^^^^^ help: remove this guard
145113
146- error: aborting due to 18  previous errors
114+ error: aborting due to 14  previous errors
147115
148116Some errors have detailed explanations: E0408, E0658.
149117For more information about an error, try `rustc --explain E0408`.
0 commit comments