-
-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove noisy warnings from unreachable ui test
- Loading branch information
Showing
2 changed files
with
6 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,14 @@ | ||
error: unreachable statement | ||
--> tests/ui/unreachable.rs:16:9 | ||
| | ||
15 | let y = unimplemented!(); | ||
| ---------------- any code following this expression is unreachable | ||
16 | let z = y; | ||
| ^^^^^^^^^^ unreachable statement | ||
15 | let _y = unimplemented!(); | ||
| ---------------- any code following this expression is unreachable | ||
16 | let _z = _y; | ||
| ^^^^^^^^^^^^ unreachable statement | ||
| | ||
note: the lint level is defined here | ||
--> tests/ui/unreachable.rs:1:9 | ||
| | ||
1 | #![deny(warnings)] | ||
| ^^^^^^^^ | ||
= note: `#[deny(unreachable_code)]` implied by `#[deny(warnings)]` | ||
|
||
error: unused variable: `y` | ||
--> tests/ui/unreachable.rs:15:13 | ||
| | ||
15 | let y = unimplemented!(); | ||
| ^ help: if this is intentional, prefix it with an underscore: `_y` | ||
| | ||
note: the lint level is defined here | ||
--> tests/ui/unreachable.rs:1:9 | ||
| | ||
1 | #![deny(warnings)] | ||
| ^^^^^^^^ | ||
= note: `#[deny(unused_variables)]` implied by `#[deny(warnings)]` | ||
|
||
error: unused variable: `z` | ||
--> tests/ui/unreachable.rs:16:13 | ||
| | ||
16 | let z = y; | ||
| ^ help: if this is intentional, prefix it with an underscore: `_z` |