]> git.lizzy.rs Git - rust.git/blob - src/test/ui/liveness/liveness-upvars.stderr
Rollup merge of #87440 - twetzel59:fix-barrier-no-op, r=yaahc
[rust.git] / src / test / ui / liveness / liveness-upvars.stderr
1 warning: value assigned to `last` is never read
2   --> $DIR/liveness-upvars.rs:10:9
3    |
4 LL |         last = Some(s);
5    |         ^^^^
6    |
7 note: the lint level is defined here
8   --> $DIR/liveness-upvars.rs:4:9
9    |
10 LL | #![warn(unused)]
11    |         ^^^^^^
12    = note: `#[warn(unused_assignments)]` implied by `#[warn(unused)]`
13    = help: maybe it is overwritten before being read?
14
15 warning: unused variable: `last`
16   --> $DIR/liveness-upvars.rs:10:9
17    |
18 LL |         last = Some(s);
19    |         ^^^^
20    |
21 note: the lint level is defined here
22   --> $DIR/liveness-upvars.rs:4:9
23    |
24 LL | #![warn(unused)]
25    |         ^^^^^^
26    = note: `#[warn(unused_variables)]` implied by `#[warn(unused)]`
27    = help: did you mean to capture by reference instead?
28
29 warning: unused variable: `sum`
30   --> $DIR/liveness-upvars.rs:22:9
31    |
32 LL |         sum += x;
33    |         ^^^
34    |
35    = help: did you mean to capture by reference instead?
36
37 warning: value captured by `c` is never read
38   --> $DIR/liveness-upvars.rs:32:9
39    |
40 LL |         c = 1;
41    |         ^
42    |
43    = help: did you mean to capture by reference instead?
44
45 warning: value captured by `c` is never read
46   --> $DIR/liveness-upvars.rs:36:9
47    |
48 LL |         c = 1;
49    |         ^
50    |
51    = help: did you mean to capture by reference instead?
52
53 warning: unused variable: `c`
54   --> $DIR/liveness-upvars.rs:42:9
55    |
56 LL |         c += 1;
57    |         ^
58    |
59    = help: did you mean to capture by reference instead?
60
61 warning: value assigned to `c` is never read
62   --> $DIR/liveness-upvars.rs:45:9
63    |
64 LL |         c += 1;
65    |         ^
66    |
67    = help: maybe it is overwritten before being read?
68
69 warning: unused variable: `c`
70   --> $DIR/liveness-upvars.rs:45:9
71    |
72 LL |         c += 1;
73    |         ^
74    |
75    = help: did you mean to capture by reference instead?
76
77 warning: value assigned to `c` is never read
78   --> $DIR/liveness-upvars.rs:58:9
79    |
80 LL |         c += 1;
81    |         ^
82    |
83    = help: maybe it is overwritten before being read?
84
85 warning: value assigned to `c` is never read
86   --> $DIR/liveness-upvars.rs:64:9
87    |
88 LL |         c += 1;
89    |         ^
90    |
91    = help: maybe it is overwritten before being read?
92
93 warning: value assigned to `d` is never read
94   --> $DIR/liveness-upvars.rs:73:13
95    |
96 LL |             d = Some("d1");
97    |             ^
98    |
99    = help: maybe it is overwritten before being read?
100
101 warning: value assigned to `e` is never read
102   --> $DIR/liveness-upvars.rs:77:13
103    |
104 LL |             e = Some("e1");
105    |             ^
106    |
107    = help: maybe it is overwritten before being read?
108
109 warning: value assigned to `e` is never read
110   --> $DIR/liveness-upvars.rs:79:13
111    |
112 LL |             e = Some("e2");
113    |             ^
114    |
115    = help: maybe it is overwritten before being read?
116
117 warning: unused variable: `e`
118   --> $DIR/liveness-upvars.rs:77:13
119    |
120 LL |             e = Some("e1");
121    |             ^
122    |
123    = help: did you mean to capture by reference instead?
124
125 warning: value assigned to `v` is never read
126   --> $DIR/liveness-upvars.rs:87:13
127    |
128 LL |             v = T::default();
129    |             ^
130    |
131    = help: maybe it is overwritten before being read?
132
133 warning: value assigned to `z` is never read
134   --> $DIR/liveness-upvars.rs:99:17
135    |
136 LL |                 z = T::default();
137    |                 ^
138    |
139    = help: maybe it is overwritten before being read?
140
141 warning: unused variable: `z`
142   --> $DIR/liveness-upvars.rs:99:17
143    |
144 LL |                 z = T::default();
145    |                 ^
146    |
147    = help: did you mean to capture by reference instead?
148
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
190