]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | error: 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 XL |
8 | | |
9 | note: lint level defined here | |
416331ca | 10 | --> $DIR/lint-unused-mut-variables.rs:5:9 |
b7449926 XL |
11 | | |
12 | LL | #![deny(unused_mut)] | |
13 | | ^^^^^^^^^^ | |
14 | ||
15 | error: variable does not need to be mutable | |
416331ca XL |
16 | --> $DIR/lint-unused-mut-variables.rs:14:5 |
17 | | | |
18 | LL | mut a: i32, | |
19 | | ----^ | |
20 | | | | |
21 | | help: remove this `mut` | |
22 | ||
23 | error: variable does not need to be mutable | |
24 | --> $DIR/lint-unused-mut-variables.rs:23:9 | |
25 | | | |
26 | LL | mut a: i32, | |
27 | | ----^ | |
28 | | | | |
29 | | help: remove this `mut` | |
30 | ||
31 | error: variable does not need to be mutable | |
32 | --> $DIR/lint-unused-mut-variables.rs:29:9 | |
33 | | | |
34 | LL | mut a: i32, | |
35 | | ----^ | |
36 | | | | |
37 | | help: remove this `mut` | |
38 | ||
39 | error: variable does not need to be mutable | |
40 | --> $DIR/lint-unused-mut-variables.rs:39:9 | |
41 | | | |
42 | LL | mut a: i32, | |
43 | | ----^ | |
44 | | | | |
45 | | help: remove this `mut` | |
46 | ||
47 | error: variable does not need to be mutable | |
48 | --> $DIR/lint-unused-mut-variables.rs:48:9 | |
49 | | | |
50 | LL | mut a: i32, | |
51 | | ----^ | |
52 | | | | |
53 | | help: remove this `mut` | |
54 | ||
55 | error: variable does not need to be mutable | |
56 | --> $DIR/lint-unused-mut-variables.rs:57:9 | |
57 | | | |
58 | LL | mut a: i32, | |
59 | | ----^ | |
60 | | | | |
61 | | help: remove this `mut` | |
62 | ||
63 | error: variable does not need to be mutable | |
64 | --> $DIR/lint-unused-mut-variables.rs:62:9 | |
65 | | | |
66 | LL | mut a: i32, | |
67 | | ----^ | |
68 | | | | |
69 | | help: remove this `mut` | |
70 | ||
71 | error: variable does not need to be mutable | |
72 | --> $DIR/lint-unused-mut-variables.rs:104:14 | |
73 | | | |
74 | LL | let x = |mut y: isize| 10; | |
75 | | ----^ | |
76 | | | | |
77 | | help: remove this `mut` | |
78 | ||
79 | error: variable does not need to be mutable | |
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 | ||
87 | error: 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 | ||
95 | error: 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 | ||
103 | error: 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 | ||
111 | error: 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 | ||
119 | error: 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 | ||
127 | error: 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 | ||
135 | error: 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 | ||
143 | error: variable does not need to be mutable | |
416331ca | 144 | --> $DIR/lint-unused-mut-variables.rs:96:8 |
b7449926 | 145 | | |
532ac7d7 | 146 | LL | (mut x, 1) | |
b7449926 XL |
147 | | ----^ |
148 | | | | |
149 | | help: remove this `mut` | |
150 | ||
151 | error: variable does not need to be mutable | |
416331ca | 152 | --> $DIR/lint-unused-mut-variables.rs:109:9 |
b7449926 | 153 | | |
532ac7d7 | 154 | LL | let mut a = &mut 5; |
b7449926 XL |
155 | | ----^ |
156 | | | | |
157 | | help: remove this `mut` | |
158 | ||
159 | error: variable does not need to be mutable | |
416331ca | 160 | --> $DIR/lint-unused-mut-variables.rs:114:9 |
b7449926 | 161 | | |
532ac7d7 | 162 | LL | let mut b = (&mut a,); |
b7449926 XL |
163 | | ----^ |
164 | | | | |
165 | | help: remove this `mut` | |
166 | ||
167 | error: variable does not need to be mutable | |
416331ca | 168 | --> $DIR/lint-unused-mut-variables.rs:117:9 |
b7449926 | 169 | | |
532ac7d7 | 170 | LL | let mut x = &mut 1; |
b7449926 XL |
171 | | ----^ |
172 | | | | |
173 | | help: remove this `mut` | |
174 | ||
175 | error: variable does not need to be mutable | |
416331ca | 176 | --> $DIR/lint-unused-mut-variables.rs:129:9 |
b7449926 | 177 | | |
532ac7d7 | 178 | LL | let mut v : &mut Vec<()> = &mut vec![]; |
b7449926 XL |
179 | | ----^ |
180 | | | | |
181 | | help: remove this `mut` | |
182 | ||
183 | error: variable does not need to be mutable | |
416331ca | 184 | --> $DIR/lint-unused-mut-variables.rs:106:13 |
b7449926 | 185 | | |
532ac7d7 | 186 | LL | fn what(mut foo: isize) {} |
b7449926 XL |
187 | | ----^^^ |
188 | | | | |
189 | | help: remove this `mut` | |
190 | ||
191 | error: variable does not need to be mutable | |
416331ca | 192 | --> $DIR/lint-unused-mut-variables.rs:124:20 |
b7449926 XL |
193 | | |
194 | LL | fn mut_ref_arg(mut arg : &mut [u8]) -> &mut [u8] { | |
195 | | ----^^^ | |
196 | | | | |
197 | | help: remove this `mut` | |
198 | ||
199 | error: variable does not need to be mutable | |
416331ca | 200 | --> $DIR/lint-unused-mut-variables.rs:196:9 |
b7449926 | 201 | | |
532ac7d7 | 202 | LL | let mut b = vec![2]; |
b7449926 XL |
203 | | ----^ |
204 | | | | |
205 | | help: remove this `mut` | |
206 | | | |
207 | note: lint level defined here | |
416331ca | 208 | --> $DIR/lint-unused-mut-variables.rs:192:8 |
b7449926 XL |
209 | | |
210 | LL | #[deny(unused_mut)] | |
211 | | ^^^^^^^^^^ | |
212 | ||
416331ca | 213 | error: aborting due to 25 previous errors |
b7449926 | 214 |