I also added `// skip-codegen` to each one, to address potential concerns that this change would otherwise slow down our test suite spending time generating code for files that are really just meant to be checks of compiler diagnostics. (However, I will say: My preference is to not use `// skip-codegen` if one can avoid it. We can use all the testing of how we drive LLVM that we can get...) (Updated post rebase.)
32 lines
826 B
Text
32 lines
826 B
Text
warning: unreachable statement
|
|
--> $DIR/never-assign-dead-code.rs:20:5
|
|
|
|
|
LL | drop(x); //~ WARN unreachable
|
|
| ^^^^^^^^
|
|
|
|
|
note: lint level defined here
|
|
--> $DIR/never-assign-dead-code.rs:15:9
|
|
|
|
|
LL | #![warn(unused)]
|
|
| ^^^^^^
|
|
= note: #[warn(unreachable_code)] implied by #[warn(unused)]
|
|
|
|
warning: unreachable expression
|
|
--> $DIR/never-assign-dead-code.rs:20:5
|
|
|
|
|
LL | drop(x); //~ WARN unreachable
|
|
| ^^^^^^^
|
|
|
|
warning: unused variable: `x`
|
|
--> $DIR/never-assign-dead-code.rs:19:9
|
|
|
|
|
LL | let x: ! = panic!("aah"); //~ WARN unused
|
|
| ^ help: consider using `_x` instead
|
|
|
|
|
note: lint level defined here
|
|
--> $DIR/never-assign-dead-code.rs:15:9
|
|
|
|
|
LL | #![warn(unused)]
|
|
| ^^^^^^
|
|
= note: #[warn(unused_variables)] implied by #[warn(unused)]
|
|
|