Skip to content

Commit 0982be7

Browse files
committed
Remove outdated test
1 parent fe09dbf commit 0982be7

4 files changed

+6
-49
lines changed

src/test/ui/match/match-unreachable-warning-with-diverging-discrim.rs

-16
This file was deleted.

src/test/ui/match/match-unreachable-warning-with-diverging-discrim.stderr

-14
This file was deleted.

src/test/ui/reachable/expr_match.rs

-6
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,6 @@
1313
#![allow(dead_code)]
1414
#![deny(unreachable_code)]
1515

16-
fn a() {
17-
// The match is considered unreachable here, because the `return`
18-
// diverges:
19-
match {return} { } //~ ERROR unreachable
20-
}
21-
2216
fn b() {
2317
match () { () => return }
2418
println!("I am dead");
+6-13
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,23 @@
1-
error: unreachable expression
2-
--> $DIR/expr_match.rs:19:5
1+
error: unreachable statement
2+
--> $DIR/expr_match.rs:18:5
33
|
4-
LL | match {return} { } //~ ERROR unreachable
5-
| ^^^^^^^^^^^^^^^^^^
4+
LL | println!("I am dead");
5+
| ^^^^^^^^^^^^^^^^^^^^^^
66
|
77
note: lint level defined here
88
--> $DIR/expr_match.rs:14:9
99
|
1010
LL | #![deny(unreachable_code)]
1111
| ^^^^^^^^^^^^^^^^
12-
13-
error: unreachable statement
14-
--> $DIR/expr_match.rs:24:5
15-
|
16-
LL | println!("I am dead");
17-
| ^^^^^^^^^^^^^^^^^^^^^^
18-
|
1912
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
2013

2114
error: unreachable statement
22-
--> $DIR/expr_match.rs:35:5
15+
--> $DIR/expr_match.rs:29:5
2316
|
2417
LL | println!("I am dead");
2518
| ^^^^^^^^^^^^^^^^^^^^^^
2619
|
2720
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
2821

29-
error: aborting due to 3 previous errors
22+
error: aborting due to 2 previous errors
3023

0 commit comments

Comments
 (0)