diff options
| author | David Wood <david@davidtw.co> | 2019-01-25 16:56:27 +0100 |
|---|---|---|
| committer | David Wood <david@davidtw.co> | 2019-01-28 10:46:31 +0100 |
| commit | 5f021e0023b3b471c5c9c39e07f70d344cc604b0 (patch) | |
| tree | 1683d4a526e087dcee016342b7c0a7885ce2ca4d /src/test/ui/span | |
| parent | c32515566fbf8961ecce60eb71a472962da99e8c (diff) | |
| download | rust-5f021e0023b3b471c5c9c39e07f70d344cc604b0.tar.gz rust-5f021e0023b3b471c5c9c39e07f70d344cc604b0.zip | |
Unused variable suggestions on all patterns.
This commit extends existing suggestions to prefix unused variable bindings in match arms with an underscore so that it applies to all patterns in a match arm.
Diffstat (limited to 'src/test/ui/span')
| -rw-r--r-- | src/test/ui/span/issue-24690.stderr | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/ui/span/issue-24690.stderr b/src/test/ui/span/issue-24690.stderr index f052f866c90..964e323b83e 100644 --- a/src/test/ui/span/issue-24690.stderr +++ b/src/test/ui/span/issue-24690.stderr @@ -2,7 +2,7 @@ warning: unused variable: `theOtherTwo` --> $DIR/issue-24690.rs:13:9 | LL | let theOtherTwo = 2; //~ WARN should have a snake case name - | ^^^^^^^^^^^ help: consider using `_theOtherTwo` instead + | ^^^^^^^^^^^ help: consider prefixing with an underscore: `_theOtherTwo` | note: lint level defined here --> $DIR/issue-24690.rs:8:9 |
