diff options
| author | bors <bors@rust-lang.org> | 2017-10-16 03:02:05 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2017-10-16 03:02:05 +0000 |
| commit | fdec805d035bae722ab6b587b21d8473521997dd (patch) | |
| tree | ce89520838973b35edd18444ffcf2010ac14e317 /src/test/ui | |
| parent | 9223c39dc53ad97ae95fd9cec86503a083b8e966 (diff) | |
| parent | 4df1278c69f6f74f3a58e647ca3a9cd38395ebf3 (diff) | |
| download | rust-fdec805d035bae722ab6b587b21d8473521997dd.tar.gz rust-fdec805d035bae722ab6b587b21d8473521997dd.zip | |
Auto merge of #45283 - alexcrichton:used-mut-nodes, r=arielb1
rustc: Remove `used_mut_nodes` from `TyCtxt` This updates the borrowck query to return a result, and this result is then used to incrementally check for unused mutable nodes given sets of all the used mutable nodes. Closes #42384
Diffstat (limited to 'src/test/ui')
| -rw-r--r-- | src/test/ui/lint/suggestions.stderr | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/test/ui/lint/suggestions.stderr b/src/test/ui/lint/suggestions.stderr index 5b2a4f589f7..9a69c52e6cf 100644 --- a/src/test/ui/lint/suggestions.stderr +++ b/src/test/ui/lint/suggestions.stderr @@ -14,6 +14,20 @@ warning: use of deprecated attribute `no_debug`: the `#[no_debug]` attribute was | = note: #[warn(deprecated)] on by default +warning: variable does not need to be mutable + --> $DIR/suggestions.rs:17:13 + | +17 | let mut a = (1); // should suggest no `mut`, no parens + | ---^^ + | | + | help: remove this `mut` + | +note: lint level defined here + --> $DIR/suggestions.rs:11:9 + | +11 | #![warn(unused_mut)] // UI tests pass `-A unused`—see Issue #43896 + | ^^^^^^^^^^ + warning: denote infinite loops with `loop { ... }` --> $DIR/suggestions.rs:16:5 | @@ -29,17 +43,3 @@ warning: denote infinite loops with `loop { ... }` | = note: #[warn(while_true)] on by default -warning: variable does not need to be mutable - --> $DIR/suggestions.rs:17:13 - | -17 | let mut a = (1); // should suggest no `mut`, no parens - | ---^^ - | | - | help: remove this `mut` - | -note: lint level defined here - --> $DIR/suggestions.rs:11:9 - | -11 | #![warn(unused_mut)] // UI tests pass `-A unused`—see Issue #43896 - | ^^^^^^^^^^ - |
