forked from rust-lang/rust
-
-
Notifications
You must be signed in to change notification settings - Fork 2
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 rust-lang#5535 - ebroto:issue_5360, r=phansch
used_underscore_binding: do not lint on `await` desugaring changelog: used_underscore_binding: do not lint on `await` desugaring Fixes rust-lang#5360
- Loading branch information
Showing
3 changed files
with
32 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,40 @@ | ||
error: used binding `_foo` which is prefixed with an underscore. A leading underscore signals that a binding will not be used. | ||
--> $DIR/used_underscore_binding.rs:25:5 | ||
--> $DIR/used_underscore_binding.rs:26:5 | ||
| | ||
LL | _foo + 1 | ||
| ^^^^ | ||
| | ||
= note: `-D clippy::used-underscore-binding` implied by `-D warnings` | ||
|
||
error: used binding `_foo` which is prefixed with an underscore. A leading underscore signals that a binding will not be used. | ||
--> $DIR/used_underscore_binding.rs:30:20 | ||
--> $DIR/used_underscore_binding.rs:31:20 | ||
| | ||
LL | println!("{}", _foo); | ||
| ^^^^ | ||
|
||
error: used binding `_foo` which is prefixed with an underscore. A leading underscore signals that a binding will not be used. | ||
--> $DIR/used_underscore_binding.rs:31:16 | ||
--> $DIR/used_underscore_binding.rs:32:16 | ||
| | ||
LL | assert_eq!(_foo, _foo); | ||
| ^^^^ | ||
|
||
error: used binding `_foo` which is prefixed with an underscore. A leading underscore signals that a binding will not be used. | ||
--> $DIR/used_underscore_binding.rs:31:22 | ||
--> $DIR/used_underscore_binding.rs:32:22 | ||
| | ||
LL | assert_eq!(_foo, _foo); | ||
| ^^^^ | ||
|
||
error: used binding `_underscore_field` which is prefixed with an underscore. A leading underscore signals that a binding will not be used. | ||
--> $DIR/used_underscore_binding.rs:44:5 | ||
--> $DIR/used_underscore_binding.rs:45:5 | ||
| | ||
LL | s._underscore_field += 1; | ||
| ^^^^^^^^^^^^^^^^^^^ | ||
|
||
error: aborting due to 5 previous errors | ||
error: used binding `_i` which is prefixed with an underscore. A leading underscore signals that a binding will not be used. | ||
--> $DIR/used_underscore_binding.rs:100:16 | ||
| | ||
LL | uses_i(_i); | ||
| ^^ | ||
|
||
error: aborting due to 6 previous errors | ||
|