-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrustc_errors.txt
More file actions
275 lines (252 loc) · 22.4 KB
/
rustc_errors.txt
File metadata and controls
275 lines (252 loc) · 22.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
rustc : warning: denote infinite loops with `loop { ... }`
At line:1 char:1
+ rustc gallery/js_parser/js_parser.rs -o gallery/js_parser/js_parser_r ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (warning: denote... `loop { ... }`:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
--> gallery/js_parser/js_parser.rs:699:5
|
699 | while true {
| ^^^^^^^^^^ help: use `loop`
|
= note: `#[warn(while_true)]` on by default
error[E0382]: borrow of moved value: `src`
--> gallery/js_parser/js_parser.rs:49:16
|
40 | pub fn new(src : String) -> Lexer {
| --- move occurs because `src` has type `String`, which does not implement the `Copy` trait
...
48 | me.source = src;
| --- value moved here
49 | me.__len = src.len() as i64;
| ^^^ value borrowed here after move
|
help: consider cloning the value if the performance cost is acceptable
|
48 | me.source = src.clone();
| ++++++++
error[E0382]: borrow of moved value: `toks`
--> gallery/js_parser/js_parser.rs:903:11
|
900 | fn initParser(&mut self, mut toks : Vec<Token>) -> () {
| -------- move occurs because `toks` has type `Vec<Token>`, which does not
implement the `Copy` trait
901 | self.tokens = toks;
| ---- value moved here
902 | self.pos = 0;
903 | if ((toks.len() as i64)) > 0 {
| ^^^^ value borrowed here after move
|
help: consider cloning the value if the performance cost is acceptable
|
901 | self.tokens = toks.clone();
| ++++++++
error[E0382]: borrow of moved value: `src`
--> gallery/js_parser/js_parser.rs:911:34
|
908 | fn initParserWithSource(&mut self, mut toks : Vec<Token>, src : String) -> () {
| --- move occurs because `src` has type
`String`, which does not implement the `Copy` trait
909 | self.tokens = toks;
910 | self.source = src;
| --- value moved here
911 | self.lexer = Some(Lexer::new(src.clone()));
| ^^^ value borrowed here after move
|
help: consider cloning the value if the performance cost is acceptable
|
910 | self.source = src.clone();
| ++++++++
error[E0382]: borrow of moved value: `toks`
--> gallery/js_parser/js_parser.rs:913:11
|
908 | fn initParserWithSource(&mut self, mut toks : Vec<Token>, src : String) -> () {
| -------- move occurs because `toks` has type `Vec<Token>`, which does
not implement the `Copy` trait
909 | self.tokens = toks;
| ---- value moved here
...
913 | if ((toks.len() as i64)) > 0 {
| ^^^^ value borrowed here after move
|
help: consider cloning the value if the performance cost is acceptable
|
909 | self.tokens = toks.clone();
| ++++++++
error[E0382]: use of moved value: `fullValue`
--> gallery/js_parser/js_parser.rs:1067:17
|
1047 | let fullValue : String = regexTok.value.clone();
| --------- move occurs because `fullValue` has type `String`, which does not implement the `Copy`
trait
...
1063 | pattern = fullValue;
| --------- value moved here
...
1067 | regex.raw = fullValue;
| ^^^^^^^^^ value used here after move
|
help: consider cloning the value if the performance cost is acceptable
|
1063 | pattern = fullValue.clone();
| ++++++++
warning: value assigned to `pattern` is never read
--> gallery/js_parser/js_parser.rs:1048:32
|
1048 | let mut pattern : String = "".to_string();
| ^^^^^^^^^^^^^^
|
= help: maybe it is overwritten before being read?
= note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
error[E0382]: use of moved value: `paramTok.value`
--> gallery/js_parser/js_parser.rs:1346:24
|
1340 | rest.name = paramTok.value;
| -------------- value moved here
...
1346 | argNode.name = paramTok.value;
| ^^^^^^^^^^^^^^ value used here after move
|
= note: move occurs because `paramTok.value` has type `String`, which does not implement the `Copy` trait
error[E0382]: use of moved value: `paramTok.value`
--> gallery/js_parser/js_parser.rs:1453:24
|
1447 | rest.name = paramTok.value;
| -------------- value moved here
...
1453 | argNode.name = paramTok.value;
| ^^^^^^^^^^^^^^ value used here after move
|
= note: move occurs because `paramTok.value` has type `String`, which does not implement the `Copy` trait
error[E0382]: borrow of moved value: `nameTok.value`
--> gallery/js_parser/js_parser.rs:1635:9
|
1630 | keyNode.name = nameTok.value;
| ------------- value moved here
...
1635 | if nameTok.value == "constructor".to_string() {
| ^^^^^^^^^^^^^ value borrowed here after move
|
= note: move occurs because `nameTok.value` has type `String`, which does not implement the `Copy` trait
warning: value assigned to `isStatic` is never read
--> gallery/js_parser/js_parser.rs:1608:7
|
1608 | isStatic = true;
| ^^^^^^^^^^^^^^^
|
= help: maybe it is overwritten before being read?
error[E0382]: borrow of partially moved value: `specifier`
--> gallery/js_parser/js_parser.rs:1974:32
|
1972 | specifier.exported = specifier.local;
| --------------- value partially moved here
1973 | }
1974 | exportNode.children.push(specifier.clone());
| ^^^^^^^^^ value borrowed here after partial move
|
note: these 2 reinitializations might get skipped
--> gallery/js_parser/js_parser.rs:1941:36
|
1941 | let mut specifier : JSNode = JSNode::new();
| ^^^^^^^^^^^^^
...
1952 | specifier.local = Some(Box::new(localNode.clone()));
| ^^^^^^^^^^^^^^^
= note: partial move occurs because `specifier.local` has type `Option<Box<JSNode>>`, which does not
implement the `Copy` trait
error[E0382]: use of moved value: `keyTok.value`
--> gallery/js_parser/js_parser.rs:3005:25
|
2994 | prop.name = keyTok.value;
| ------------ value moved here
...
3005 | id.name = keyTok.value;
| ^^^^^^^^^^^^ value used here after move
|
= note: move occurs because `keyTok.value` has type `String`, which does not implement the `Copy` trait
error[E0382]: use of moved value: `keyTok.value`
--> gallery/js_parser/js_parser.rs:3131:23
|
3104 | prop.name = keyTok.value;
| ------------ value moved here
...
3131 | id_1.name = keyTok.value;
| ^^^^^^^^^^^^ value used here after move
|
= note: move occurs because `keyTok.value` has type `String`, which does not implement the `Copy` trait
warning: value assigned to `prefix_1` is never read
--> gallery/js_parser/js_parser.rs:3497:35
|
3497 | let mut prefix_1 : String = "".to_string();
| ^^^^^^^^^^^^^^
|
= help: maybe it is overwritten before being read?
error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable
--> gallery/js_parser/js_parser.rs:3817:82
|
3817 | self.output = format!("{}{}", (format!("{}{}", (format!("{}{}", self.output, self.getIndent())),
text)), "\n".to_string());
| -----------------------------^^^^^^^^^^^^^^^^-
| | | |
| | | mutable borrow occurs
here
| | immutable borrow occurs here
| immutable borrow later used here
error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable
--> gallery/js_parser/js_parser.rs:3820:48
|
3820 | self.output = format!("{}{}", self.output, self.getIndent());
| -----------------------------^^^^^^^^^^^^^^^^-
| | | |
| | | mutable borrow occurs here
| | immutable borrow occurs here
| immutable borrow later used here
warning: value assigned to `hasDefault` is never read
--> gallery/js_parser/js_parser.rs:4536:9
|
4536 | hasDefault = true;
| ^^^^^^^^^^^^^^^^^
|
= help: maybe it is overwritten before being read?
warning: value assigned to `hasNamespace` is never read
--> gallery/js_parser/js_parser.rs:4539:9
|
4539 | hasNamespace = true;
| ^^^^^^^^^^^^^^^^^^^
|
= help: maybe it is overwritten before being read?
error[E0382]: borrow of moved value: `program`
--> gallery/js_parser/js_parser.rs:4802:61
|
4789 | let mut program : JSNode = parser.parseProgram();
| ----------- move occurs because `program` has type `JSNode`, which does not implement the `Copy`
trait
...
4799 | let output : String = (printer).print(program);
| ------- value moved here
...
4802 | println!( "{}", format!("{}{}", ([" ".to_string() , (((program.children.len() as i64)).to_string())
].join("")), " statements proces...
| ^^^^^^^^^^^^^^^^ value borrowed here after
move
|
note: consider changing this parameter type in method `print` to borrow instead if owning the value isn't
necessary
--> gallery/js_parser/js_parser.rs:3857:34
|
3857 | fn print(&mut self, mut node : JSNode) -> String {
| ----- in this method ^^^^^^ this parameter takes ownership of the value
help: consider cloning the value if the performance cost is acceptable
|
4799 | let output : String = (printer).print(program.clone());
| ++++++++
warning: value assigned to `showAst` is never read
--> gallery/js_parser/js_parser.rs:4903:13
|
4903 | showAst = true;
| ^^^^^^^^^^^^^^
|
= help: maybe it is overwritten before being read?
error: aborting due to 14 previous errors; 7 warnings emitted
Some errors have detailed explanations: E0382, E0502.
For more information about an error, try `rustc --explain E0382`.