Skip to content

Commit 9f257dd

Browse files
Renamed ui/dead-code-ret to ui/unreachable-code-ret
This test was actually about the unreachable_code flag, not dead_code, so I renamed it for clarity (to prepare for the next commit, where I plan to move a bunch of the dead_code tests to a single folder)
1 parent 23f890f commit 9f257dd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
File renamed without changes.

src/test/ui/dead-code-ret.stderr renamed to src/test/ui/unreachable-code-ret.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
error: unreachable statement
2-
--> $DIR/dead-code-ret.rs:7:5
2+
--> $DIR/unreachable-code-ret.rs:7:5
33
|
44
LL | return;
55
| ------ any code following this expression is unreachable
66
LL | println!("Paul is dead");
77
| ^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement
88
|
99
note: lint level defined here
10-
--> $DIR/dead-code-ret.rs:3:9
10+
--> $DIR/unreachable-code-ret.rs:3:9
1111
|
1212
LL | #![deny(unreachable_code)]
1313
| ^^^^^^^^^^^^^^^^

0 commit comments

Comments
 (0)