forked from rust-lang/rust-clippy
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Lint redundant_semicolon was added to rustc
- Loading branch information
Showing
4 changed files
with
16 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
#![feature(stmt_expr_attributes)] | ||
#![allow(redundant_semicolon)] | ||
|
||
#[rustfmt::skip] | ||
fn main() { | ||
|
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,10 +1,16 @@ | ||
error: statement with no effect | ||
--> $DIR/blocks.rs:14:5 | ||
--> $DIR/blocks.rs:8:9 | ||
| | ||
LL | -x; | ||
| ^^^ | ||
LL | ;;;; | ||
| ^^^^ | ||
| | ||
= note: `-D clippy::no-effect` implied by `-D warnings` | ||
|
||
error: aborting due to previous error | ||
error: statement with no effect | ||
--> $DIR/blocks.rs:15:5 | ||
| | ||
LL | -x; | ||
| ^^^ | ||
|
||
error: aborting due to 2 previous errors | ||
|
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