|
1 | 1 | warning: value assigned to `last` is never read |
2 | | - --> $DIR/liveness-upvars.rs:9:9 |
| 2 | + --> $DIR/liveness-upvars.rs:10:9 |
3 | 3 | | |
4 | 4 | LL | last = Some(s); |
5 | 5 | | ^^^^ |
6 | 6 | | |
7 | 7 | note: the lint level is defined here |
8 | | - --> $DIR/liveness-upvars.rs:3:9 |
| 8 | + --> $DIR/liveness-upvars.rs:4:9 |
9 | 9 | | |
10 | 10 | LL | #![warn(unused)] |
11 | 11 | | ^^^^^^ |
12 | 12 | = note: `#[warn(unused_assignments)]` implied by `#[warn(unused)]` |
13 | 13 | = help: maybe it is overwritten before being read? |
14 | 14 |
|
15 | 15 | warning: unused variable: `last` |
16 | | - --> $DIR/liveness-upvars.rs:9:9 |
| 16 | + --> $DIR/liveness-upvars.rs:10:9 |
17 | 17 | | |
18 | 18 | LL | last = Some(s); |
19 | 19 | | ^^^^ |
20 | 20 | | |
21 | 21 | note: the lint level is defined here |
22 | | - --> $DIR/liveness-upvars.rs:3:9 |
| 22 | + --> $DIR/liveness-upvars.rs:4:9 |
23 | 23 | | |
24 | 24 | LL | #![warn(unused)] |
25 | 25 | | ^^^^^^ |
26 | 26 | = note: `#[warn(unused_variables)]` implied by `#[warn(unused)]` |
27 | 27 | = help: did you mean to capture by reference instead? |
28 | 28 |
|
29 | 29 | warning: unused variable: `sum` |
30 | | - --> $DIR/liveness-upvars.rs:21:9 |
| 30 | + --> $DIR/liveness-upvars.rs:22:9 |
31 | 31 | | |
32 | 32 | LL | sum += x; |
33 | 33 | | ^^^ |
34 | 34 | | |
35 | 35 | = help: did you mean to capture by reference instead? |
36 | 36 |
|
37 | 37 | warning: value captured by `c` is never read |
38 | | - --> $DIR/liveness-upvars.rs:31:9 |
| 38 | + --> $DIR/liveness-upvars.rs:32:9 |
39 | 39 | | |
40 | 40 | LL | c = 1; |
41 | 41 | | ^ |
42 | 42 | | |
43 | 43 | = help: did you mean to capture by reference instead? |
44 | 44 |
|
45 | 45 | warning: value captured by `c` is never read |
46 | | - --> $DIR/liveness-upvars.rs:35:9 |
| 46 | + --> $DIR/liveness-upvars.rs:36:9 |
47 | 47 | | |
48 | 48 | LL | c = 1; |
49 | 49 | | ^ |
50 | 50 | | |
51 | 51 | = help: did you mean to capture by reference instead? |
52 | 52 |
|
53 | 53 | warning: unused variable: `c` |
54 | | - --> $DIR/liveness-upvars.rs:41:9 |
| 54 | + --> $DIR/liveness-upvars.rs:42:9 |
55 | 55 | | |
56 | 56 | LL | c += 1; |
57 | 57 | | ^ |
58 | 58 | | |
59 | 59 | = help: did you mean to capture by reference instead? |
60 | 60 |
|
61 | 61 | warning: value assigned to `c` is never read |
62 | | - --> $DIR/liveness-upvars.rs:44:9 |
| 62 | + --> $DIR/liveness-upvars.rs:45:9 |
63 | 63 | | |
64 | 64 | LL | c += 1; |
65 | 65 | | ^ |
66 | 66 | | |
67 | 67 | = help: maybe it is overwritten before being read? |
68 | 68 |
|
69 | 69 | warning: unused variable: `c` |
70 | | - --> $DIR/liveness-upvars.rs:44:9 |
| 70 | + --> $DIR/liveness-upvars.rs:45:9 |
71 | 71 | | |
72 | 72 | LL | c += 1; |
73 | 73 | | ^ |
74 | 74 | | |
75 | 75 | = help: did you mean to capture by reference instead? |
76 | 76 |
|
77 | 77 | warning: value assigned to `c` is never read |
78 | | - --> $DIR/liveness-upvars.rs:57:9 |
| 78 | + --> $DIR/liveness-upvars.rs:58:9 |
79 | 79 | | |
80 | 80 | LL | c += 1; |
81 | 81 | | ^ |
82 | 82 | | |
83 | 83 | = help: maybe it is overwritten before being read? |
84 | 84 |
|
85 | 85 | warning: value assigned to `c` is never read |
86 | | - --> $DIR/liveness-upvars.rs:63:9 |
| 86 | + --> $DIR/liveness-upvars.rs:64:9 |
87 | 87 | | |
88 | 88 | LL | c += 1; |
89 | 89 | | ^ |
90 | 90 | | |
91 | 91 | = help: maybe it is overwritten before being read? |
92 | 92 |
|
93 | 93 | warning: value assigned to `d` is never read |
94 | | - --> $DIR/liveness-upvars.rs:72:13 |
| 94 | + --> $DIR/liveness-upvars.rs:73:13 |
95 | 95 | | |
96 | 96 | LL | d = Some("d1"); |
97 | 97 | | ^ |
98 | 98 | | |
99 | 99 | = help: maybe it is overwritten before being read? |
100 | 100 |
|
101 | 101 | warning: value assigned to `e` is never read |
102 | | - --> $DIR/liveness-upvars.rs:76:13 |
| 102 | + --> $DIR/liveness-upvars.rs:77:13 |
103 | 103 | | |
104 | 104 | LL | e = Some("e1"); |
105 | 105 | | ^ |
106 | 106 | | |
107 | 107 | = help: maybe it is overwritten before being read? |
108 | 108 |
|
109 | 109 | warning: value assigned to `e` is never read |
110 | | - --> $DIR/liveness-upvars.rs:78:13 |
| 110 | + --> $DIR/liveness-upvars.rs:79:13 |
111 | 111 | | |
112 | 112 | LL | e = Some("e2"); |
113 | 113 | | ^ |
114 | 114 | | |
115 | 115 | = help: maybe it is overwritten before being read? |
116 | 116 |
|
117 | 117 | warning: unused variable: `e` |
118 | | - --> $DIR/liveness-upvars.rs:76:13 |
| 118 | + --> $DIR/liveness-upvars.rs:77:13 |
119 | 119 | | |
120 | 120 | LL | e = Some("e1"); |
121 | 121 | | ^ |
122 | 122 | | |
123 | 123 | = help: did you mean to capture by reference instead? |
124 | 124 |
|
125 | 125 | warning: value assigned to `v` is never read |
126 | | - --> $DIR/liveness-upvars.rs:86:13 |
| 126 | + --> $DIR/liveness-upvars.rs:87:13 |
127 | 127 | | |
128 | 128 | LL | v = T::default(); |
129 | 129 | | ^ |
130 | 130 | | |
131 | 131 | = help: maybe it is overwritten before being read? |
132 | 132 |
|
133 | 133 | warning: value assigned to `z` is never read |
134 | | - --> $DIR/liveness-upvars.rs:98:17 |
| 134 | + --> $DIR/liveness-upvars.rs:99:17 |
135 | 135 | | |
136 | 136 | LL | z = T::default(); |
137 | 137 | | ^ |
138 | 138 | | |
139 | 139 | = help: maybe it is overwritten before being read? |
140 | 140 |
|
141 | 141 | warning: unused variable: `z` |
142 | | - --> $DIR/liveness-upvars.rs:98:17 |
| 142 | + --> $DIR/liveness-upvars.rs:99:17 |
143 | 143 | | |
144 | 144 | LL | z = T::default(); |
145 | 145 | | ^ |
146 | 146 | | |
147 | 147 | = help: did you mean to capture by reference instead? |
148 | 148 |
|
149 | | -warning: 17 warnings emitted |
| 149 | +warning: value assigned to `state` is never read |
| 150 | + --> $DIR/liveness-upvars.rs:125:9 |
| 151 | + | |
| 152 | +LL | state = 4; |
| 153 | + | ^^^^^ |
| 154 | + | |
| 155 | + = help: maybe it is overwritten before being read? |
| 156 | + |
| 157 | +warning: value assigned to `state` is never read |
| 158 | + --> $DIR/liveness-upvars.rs:128:9 |
| 159 | + | |
| 160 | +LL | state = 5; |
| 161 | + | ^^^^^ |
| 162 | + | |
| 163 | + = help: maybe it is overwritten before being read? |
| 164 | + |
| 165 | +warning: unused variable: `state` |
| 166 | + --> $DIR/liveness-upvars.rs:125:9 |
| 167 | + | |
| 168 | +LL | state = 4; |
| 169 | + | ^^^^^ |
| 170 | + | |
| 171 | + = help: did you mean to capture by reference instead? |
| 172 | + |
| 173 | +warning: value assigned to `s` is never read |
| 174 | + --> $DIR/liveness-upvars.rs:137:9 |
| 175 | + | |
| 176 | +LL | s = 1; |
| 177 | + | ^ |
| 178 | + | |
| 179 | + = help: maybe it is overwritten before being read? |
| 180 | + |
| 181 | +warning: value assigned to `s` is never read |
| 182 | + --> $DIR/liveness-upvars.rs:139:9 |
| 183 | + | |
| 184 | +LL | s = yield (); |
| 185 | + | ^ |
| 186 | + | |
| 187 | + = help: maybe it is overwritten before being read? |
| 188 | + |
| 189 | +warning: 22 warnings emitted |
150 | 190 |
|
0 commit comments