-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #4388 - flip1995:rustup, r=phansch
Rustup Supersedes #4387 and #4385 This removes tests with the `try!` macro in them completely. There is no need for Clippy to support the `try!` macro, since it is deprecated now. [`StmtKind`](https://doc.rust-lang.org/nightly/nightly-rustc/rustc/hir/enum.StmtKind.html) got a new variant [`Semi`](https://doc.rust-lang.org/nightly/nightly-rustc/rustc/hir/enum.StmtKind.html#variant.Semi), which Just Works with the `author` lint. Nice. changelog: none
- Loading branch information
Showing
16 changed files
with
43 additions
and
56 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
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
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,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
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
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
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
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,43 +1,28 @@ | ||
error: handle written amount returned or use `Write::write_all` instead | ||
--> $DIR/unused_io_amount.rs:7:5 | ||
| | ||
LL | r#try!(s.write(b"test")); | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
LL | s.write(b"test")?; | ||
| ^^^^^^^^^^^^^^^^^ | ||
| | ||
= note: `-D clippy::unused-io-amount` implied by `-D warnings` | ||
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) | ||
|
||
error: handle read amount returned or use `Read::read_exact` instead | ||
--> $DIR/unused_io_amount.rs:9:5 | ||
| | ||
LL | r#try!(s.read(&mut buf)); | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
| | ||
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) | ||
|
||
error: handle written amount returned or use `Write::write_all` instead | ||
--> $DIR/unused_io_amount.rs:14:5 | ||
| | ||
LL | s.write(b"test")?; | ||
| ^^^^^^^^^^^^^^^^^ | ||
|
||
error: handle read amount returned or use `Read::read_exact` instead | ||
--> $DIR/unused_io_amount.rs:16:5 | ||
| | ||
LL | s.read(&mut buf)?; | ||
| ^^^^^^^^^^^^^^^^^ | ||
|
||
error: handle written amount returned or use `Write::write_all` instead | ||
--> $DIR/unused_io_amount.rs:21:5 | ||
--> $DIR/unused_io_amount.rs:14:5 | ||
| | ||
LL | s.write(b"test").unwrap(); | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
error: handle read amount returned or use `Read::read_exact` instead | ||
--> $DIR/unused_io_amount.rs:23:5 | ||
--> $DIR/unused_io_amount.rs:16:5 | ||
| | ||
LL | s.read(&mut buf).unwrap(); | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
error: aborting due to 6 previous errors | ||
error: aborting due to 4 previous errors | ||
|