11warning: unreachable statement
2- --> $DIR/liveness-unused.rs:92 :9
2+ --> $DIR/liveness-unused.rs:93 :9
33 |
44LL | continue;
55 | -------- any code following this expression is unreachable
@@ -14,7 +14,7 @@ LL | #![warn(unused)]
1414 = note: `#[warn(unreachable_code)]` implied by `#[warn(unused)]`
1515
1616error: unused variable: `x`
17- --> $DIR/liveness-unused.rs:8 :7
17+ --> $DIR/liveness-unused.rs:9 :7
1818 |
1919LL | fn f1(x: isize) {
2020 | ^ help: if this is intentional, prefix it with an underscore: `_x`
@@ -26,33 +26,33 @@ LL | #![deny(unused_variables)]
2626 | ^^^^^^^^^^^^^^^^
2727
2828error: unused variable: `x`
29- --> $DIR/liveness-unused.rs:12 :8
29+ --> $DIR/liveness-unused.rs:13 :8
3030 |
3131LL | fn f1b(x: &mut isize) {
3232 | ^ help: if this is intentional, prefix it with an underscore: `_x`
3333
3434error: unused variable: `x`
35- --> $DIR/liveness-unused.rs:20 :9
35+ --> $DIR/liveness-unused.rs:21 :9
3636 |
3737LL | let x: isize;
3838 | ^ help: if this is intentional, prefix it with an underscore: `_x`
3939
4040error: unused variable: `x`
41- --> $DIR/liveness-unused.rs:25 :9
41+ --> $DIR/liveness-unused.rs:26 :9
4242 |
4343LL | let x = 3;
4444 | ^ help: if this is intentional, prefix it with an underscore: `_x`
4545
4646error: variable `x` is assigned to, but never used
47- --> $DIR/liveness-unused.rs:30 :13
47+ --> $DIR/liveness-unused.rs:31 :13
4848 |
4949LL | let mut x = 3;
5050 | ^
5151 |
5252 = note: consider using `_x` instead
5353
5454error: value assigned to `x` is never read
55- --> $DIR/liveness-unused.rs:32 :5
55+ --> $DIR/liveness-unused.rs:33 :5
5656 |
5757LL | x += 4;
5858 | ^
@@ -65,47 +65,47 @@ LL | #![deny(unused_assignments)]
6565 | ^^^^^^^^^^^^^^^^^^
6666
6767error: variable `z` is assigned to, but never used
68- --> $DIR/liveness-unused.rs:37 :13
68+ --> $DIR/liveness-unused.rs:38 :13
6969 |
7070LL | let mut z = 3;
7171 | ^
7272 |
7373 = note: consider using `_z` instead
7474
7575error: unused variable: `i`
76- --> $DIR/liveness-unused.rs:59 :12
76+ --> $DIR/liveness-unused.rs:60 :12
7777 |
7878LL | Some(i) => {
7979 | ^ help: if this is intentional, prefix it with an underscore: `_i`
8080
8181error: unused variable: `x`
82- --> $DIR/liveness-unused.rs:79 :9
82+ --> $DIR/liveness-unused.rs:80 :9
8383 |
8484LL | for x in 1..10 { }
8585 | ^ help: if this is intentional, prefix it with an underscore: `_x`
8686
8787error: unused variable: `x`
88- --> $DIR/liveness-unused.rs:84 :10
88+ --> $DIR/liveness-unused.rs:85 :10
8989 |
9090LL | for (x, _) in [1, 2, 3].iter().enumerate() { }
9191 | ^ help: if this is intentional, prefix it with an underscore: `_x`
9292
9393error: unused variable: `x`
94- --> $DIR/liveness-unused.rs:89 :13
94+ --> $DIR/liveness-unused.rs:90 :13
9595 |
9696LL | for (_, x) in [1, 2, 3].iter().enumerate() {
9797 | ^ help: if this is intentional, prefix it with an underscore: `_x`
9898
9999error: variable `x` is assigned to, but never used
100- --> $DIR/liveness-unused.rs:112 :9
100+ --> $DIR/liveness-unused.rs:113 :9
101101 |
102102LL | let x;
103103 | ^
104104 |
105105 = note: consider using `_x` instead
106106
107107error: value assigned to `x` is never read
108- --> $DIR/liveness-unused.rs:116 :9
108+ --> $DIR/liveness-unused.rs:117 :9
109109 |
110110LL | x = 0;
111111 | ^
0 commit comments