diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2017-09-15 12:49:10 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2017-10-14 09:29:02 -0700 |
| commit | 4df1278c69f6f74f3a58e647ca3a9cd38395ebf3 (patch) | |
| tree | d1da8f8f408371f7901cb30fd73285e4ae8e7adb /src/test/ui | |
| parent | af7de7b6774b061b7809ce9aa6db31ea29df33c8 (diff) | |
| download | rust-4df1278c69f6f74f3a58e647ca3a9cd38395ebf3.tar.gz rust-4df1278c69f6f74f3a58e647ca3a9cd38395ebf3.zip | |
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 - | ^^^^^^^^^^ - |
