]>
Commit | Line | Data |
---|---|---|
72b1a166 | 1 | warning: variable does not need to be mutable |
416331ca | 2 | --> $DIR/lint-unused-mut-variables.rs:9:5 |
b7449926 | 3 | | |
416331ca XL |
4 | LL | mut a: i32, |
5 | | ----^ | |
6 | | | | |
7 | | help: remove this `mut` | |
b7449926 | 8 | | |
72b1a166 | 9 | note: the lint level is defined here |
416331ca | 10 | --> $DIR/lint-unused-mut-variables.rs:5:9 |
b7449926 | 11 | | |
72b1a166 | 12 | LL | #![warn(unused_mut)] |
b7449926 XL |
13 | | ^^^^^^^^^^ |
14 | ||
72b1a166 | 15 | warning: variable does not need to be mutable |
416331ca XL |
16 | --> $DIR/lint-unused-mut-variables.rs:23:9 |
17 | | | |
18 | LL | mut a: i32, | |
19 | | ----^ | |
20 | | | | |
21 | | help: remove this `mut` | |
22 | ||
72b1a166 FG |
23 | warning: variable does not need to be mutable |
24 | --> $DIR/lint-unused-mut-variables.rs:14:5 | |
25 | | | |
26 | LL | mut a: i32, | |
27 | | ----^ | |
28 | | | | |
29 | | help: remove this `mut` | |
30 | ||
31 | warning: variable does not need to be mutable | |
416331ca XL |
32 | --> $DIR/lint-unused-mut-variables.rs:29:9 |
33 | | | |
34 | LL | mut a: i32, | |
35 | | ----^ | |
36 | | | | |
37 | | help: remove this `mut` | |
38 | ||
72b1a166 | 39 | warning: variable does not need to be mutable |
416331ca XL |
40 | --> $DIR/lint-unused-mut-variables.rs:39:9 |
41 | | | |
42 | LL | mut a: i32, | |
43 | | ----^ | |
44 | | | | |
45 | | help: remove this `mut` | |
46 | ||
72b1a166 | 47 | warning: variable does not need to be mutable |
416331ca XL |
48 | --> $DIR/lint-unused-mut-variables.rs:48:9 |
49 | | | |
50 | LL | mut a: i32, | |
51 | | ----^ | |
52 | | | | |
53 | | help: remove this `mut` | |
54 | ||
72b1a166 | 55 | warning: variable does not need to be mutable |
416331ca XL |
56 | --> $DIR/lint-unused-mut-variables.rs:57:9 |
57 | | | |
58 | LL | mut a: i32, | |
59 | | ----^ | |
60 | | | | |
61 | | help: remove this `mut` | |
62 | ||
72b1a166 | 63 | warning: variable does not need to be mutable |
416331ca XL |
64 | --> $DIR/lint-unused-mut-variables.rs:62:9 |
65 | | | |
66 | LL | mut a: i32, | |
67 | | ----^ | |
68 | | | | |
69 | | help: remove this `mut` | |
70 | ||
72b1a166 FG |
71 | warning: variable does not need to be mutable |
72 | --> $DIR/lint-unused-mut-variables.rs:107:14 | |
416331ca XL |
73 | | |
74 | LL | let x = |mut y: isize| 10; | |
75 | | ----^ | |
76 | | | | |
77 | | help: remove this `mut` | |
78 | ||
72b1a166 | 79 | warning: variable does not need to be mutable |
416331ca | 80 | --> $DIR/lint-unused-mut-variables.rs:69:9 |
b7449926 | 81 | | |
532ac7d7 | 82 | LL | let mut a = 3; |
b7449926 XL |
83 | | ----^ |
84 | | | | |
85 | | help: remove this `mut` | |
86 | ||
72b1a166 | 87 | warning: variable does not need to be mutable |
416331ca | 88 | --> $DIR/lint-unused-mut-variables.rs:71:9 |
b7449926 | 89 | | |
532ac7d7 | 90 | LL | let mut a = 2; |
b7449926 XL |
91 | | ----^ |
92 | | | | |
93 | | help: remove this `mut` | |
94 | ||
72b1a166 | 95 | warning: variable does not need to be mutable |
416331ca | 96 | --> $DIR/lint-unused-mut-variables.rs:73:9 |
b7449926 | 97 | | |
532ac7d7 | 98 | LL | let mut b = 3; |
b7449926 XL |
99 | | ----^ |
100 | | | | |
101 | | help: remove this `mut` | |
102 | ||
72b1a166 | 103 | warning: variable does not need to be mutable |
416331ca | 104 | --> $DIR/lint-unused-mut-variables.rs:75:9 |
b7449926 | 105 | | |
532ac7d7 | 106 | LL | let mut a = vec![3]; |
b7449926 XL |
107 | | ----^ |
108 | | | | |
109 | | help: remove this `mut` | |
110 | ||
72b1a166 | 111 | warning: variable does not need to be mutable |
416331ca | 112 | --> $DIR/lint-unused-mut-variables.rs:77:10 |
b7449926 | 113 | | |
532ac7d7 | 114 | LL | let (mut a, b) = (1, 2); |
b7449926 XL |
115 | | ----^ |
116 | | | | |
117 | | help: remove this `mut` | |
118 | ||
72b1a166 | 119 | warning: variable does not need to be mutable |
416331ca | 120 | --> $DIR/lint-unused-mut-variables.rs:79:9 |
b7449926 | 121 | | |
532ac7d7 | 122 | LL | let mut a; |
b7449926 XL |
123 | | ----^ |
124 | | | | |
125 | | help: remove this `mut` | |
126 | ||
72b1a166 | 127 | warning: variable does not need to be mutable |
416331ca | 128 | --> $DIR/lint-unused-mut-variables.rs:83:9 |
b7449926 | 129 | | |
532ac7d7 | 130 | LL | let mut b; |
b7449926 XL |
131 | | ----^ |
132 | | | | |
133 | | help: remove this `mut` | |
134 | ||
72b1a166 | 135 | warning: variable does not need to be mutable |
416331ca | 136 | --> $DIR/lint-unused-mut-variables.rs:92:9 |
b7449926 | 137 | | |
532ac7d7 | 138 | LL | mut x => {} |
b7449926 XL |
139 | | ----^ |
140 | | | | |
141 | | help: remove this `mut` | |
142 | ||
72b1a166 FG |
143 | warning: variable does not need to be mutable |
144 | --> $DIR/lint-unused-mut-variables.rs:99:10 | |
b7449926 | 145 | | |
72b1a166 FG |
146 | LL | (mut x, 1) | |
147 | | ----^ | |
148 | | | | |
149 | | help: remove this `mut` | |
b7449926 | 150 | |
72b1a166 FG |
151 | warning: variable does not need to be mutable |
152 | --> $DIR/lint-unused-mut-variables.rs:112:9 | |
b7449926 | 153 | | |
532ac7d7 | 154 | LL | let mut a = &mut 5; |
b7449926 XL |
155 | | ----^ |
156 | | | | |
157 | | help: remove this `mut` | |
158 | ||
72b1a166 FG |
159 | warning: variable does not need to be mutable |
160 | --> $DIR/lint-unused-mut-variables.rs:117:9 | |
b7449926 | 161 | | |
532ac7d7 | 162 | LL | let mut b = (&mut a,); |
b7449926 XL |
163 | | ----^ |
164 | | | | |
165 | | help: remove this `mut` | |
166 | ||
72b1a166 FG |
167 | warning: variable does not need to be mutable |
168 | --> $DIR/lint-unused-mut-variables.rs:120:9 | |
b7449926 | 169 | | |
532ac7d7 | 170 | LL | let mut x = &mut 1; |
b7449926 XL |
171 | | ----^ |
172 | | | | |
173 | | help: remove this `mut` | |
174 | ||
72b1a166 FG |
175 | warning: variable does not need to be mutable |
176 | --> $DIR/lint-unused-mut-variables.rs:132:9 | |
b7449926 | 177 | | |
532ac7d7 | 178 | LL | let mut v : &mut Vec<()> = &mut vec![]; |
b7449926 XL |
179 | | ----^ |
180 | | | | |
181 | | help: remove this `mut` | |
182 | ||
72b1a166 FG |
183 | warning: variable does not need to be mutable |
184 | --> $DIR/lint-unused-mut-variables.rs:187:9 | |
46de9a89 FG |
185 | | |
186 | LL | let mut raw_address_of_const = 1; | |
187 | | ----^^^^^^^^^^^^^^^^^^^^ | |
188 | | | | |
189 | | help: remove this `mut` | |
190 | ||
72b1a166 FG |
191 | warning: variable does not need to be mutable |
192 | --> $DIR/lint-unused-mut-variables.rs:109:13 | |
b7449926 | 193 | | |
532ac7d7 | 194 | LL | fn what(mut foo: isize) {} |
b7449926 XL |
195 | | ----^^^ |
196 | | | | |
197 | | help: remove this `mut` | |
198 | ||
72b1a166 FG |
199 | warning: variable does not need to be mutable |
200 | --> $DIR/lint-unused-mut-variables.rs:127:20 | |
b7449926 XL |
201 | | |
202 | LL | fn mut_ref_arg(mut arg : &mut [u8]) -> &mut [u8] { | |
203 | | ----^^^ | |
204 | | | | |
205 | | help: remove this `mut` | |
206 | ||
207 | error: variable does not need to be mutable | |
72b1a166 | 208 | --> $DIR/lint-unused-mut-variables.rs:205:9 |
b7449926 | 209 | | |
532ac7d7 | 210 | LL | let mut b = vec![2]; |
b7449926 XL |
211 | | ----^ |
212 | | | | |
213 | | help: remove this `mut` | |
214 | | | |
72b1a166 FG |
215 | note: the lint level is defined here |
216 | --> $DIR/lint-unused-mut-variables.rs:201:8 | |
b7449926 XL |
217 | | |
218 | LL | #[deny(unused_mut)] | |
219 | | ^^^^^^^^^^ | |
220 | ||
72b1a166 | 221 | error: aborting due to previous error; 25 warnings emitted |
b7449926 | 222 |