@@ -96,17 +96,17 @@ error: expected string literal
96
96
LL | asm!("", clobber_abi(foo));
97
97
| ^^^ not a string literal
98
98
99
- error: expected `) `, found `foo`
99
+ error: expected one of `)` or `, `, found `foo`
100
100
--> $DIR/parse-error.rs:42:34
101
101
|
102
102
LL | asm!("", clobber_abi("C" foo));
103
- | ^^^ expected `) `
103
+ | ^^^ expected one of `)` or `, `
104
104
105
- error: expected `)`, found `,`
106
- --> $DIR/parse-error.rs:44:33
105
+ error: expected string literal
106
+ --> $DIR/parse-error.rs:44:35
107
107
|
108
108
LL | asm!("", clobber_abi("C", foo));
109
- | ^ expected `)`
109
+ | ^^^ not a string literal
110
110
111
111
error: arguments are not allowed after clobber_abi
112
112
--> $DIR/parse-error.rs:46:38
@@ -133,251 +133,245 @@ LL | asm!("{}", options(), clobber_abi("C"), const foo);
133
133
| options
134
134
135
135
error: duplicate argument named `a`
136
- --> $DIR/parse-error.rs:54 :36
136
+ --> $DIR/parse-error.rs:53 :36
137
137
|
138
138
LL | asm!("{a}", a = const foo, a = const bar);
139
139
| ------------- ^^^^^^^^^^^^^ duplicate argument
140
140
| |
141
141
| previously here
142
142
143
143
error: argument never used
144
- --> $DIR/parse-error.rs:54 :36
144
+ --> $DIR/parse-error.rs:53 :36
145
145
|
146
146
LL | asm!("{a}", a = const foo, a = const bar);
147
147
| ^^^^^^^^^^^^^ argument never used
148
148
|
149
149
= help: if this argument is intentionally unused, consider using it in an asm comment: `"/* {1} */"`
150
150
151
151
error: explicit register arguments cannot have names
152
- --> $DIR/parse-error.rs:59 :18
152
+ --> $DIR/parse-error.rs:58 :18
153
153
|
154
154
LL | asm!("", a = in("x0") foo);
155
155
| ^^^^^^^^^^^^^^^^
156
156
157
157
error: named arguments cannot follow explicit register arguments
158
- --> $DIR/parse-error.rs:61 :35
158
+ --> $DIR/parse-error.rs:60 :35
159
159
|
160
160
LL | asm!("{a}", in("x0") foo, a = const bar);
161
161
| ------------ ^^^^^^^^^^^^^ named argument
162
162
| |
163
163
| explicit register argument
164
164
165
165
error: named arguments cannot follow explicit register arguments
166
- --> $DIR/parse-error.rs:64 :35
166
+ --> $DIR/parse-error.rs:63 :35
167
167
|
168
168
LL | asm!("{a}", in("x0") foo, a = const bar);
169
169
| ------------ ^^^^^^^^^^^^^ named argument
170
170
| |
171
171
| explicit register argument
172
172
173
173
error: positional arguments cannot follow named arguments or explicit register arguments
174
- --> $DIR/parse-error.rs:67 :35
174
+ --> $DIR/parse-error.rs:66 :35
175
175
|
176
176
LL | asm!("{1}", in("x0") foo, const bar);
177
177
| ------------ ^^^^^^^^^ positional argument
178
178
| |
179
179
| explicit register argument
180
180
181
181
error: expected one of `clobber_abi`, `const`, `in`, `inlateout`, `inout`, `lateout`, `options`, `out`, or `sym`, found `""`
182
- --> $DIR/parse-error.rs:70 :29
182
+ --> $DIR/parse-error.rs:69 :29
183
183
|
184
184
LL | asm!("", options(), "");
185
185
| ^^ expected one of 9 possible tokens
186
186
187
187
error: expected one of `clobber_abi`, `const`, `in`, `inlateout`, `inout`, `lateout`, `options`, `out`, or `sym`, found `"{}"`
188
- --> $DIR/parse-error.rs:72 :33
188
+ --> $DIR/parse-error.rs:71 :33
189
189
|
190
190
LL | asm!("{}", in(reg) foo, "{}", out(reg) foo);
191
191
| ^^^^ expected one of 9 possible tokens
192
192
193
193
error: asm template must be a string literal
194
- --> $DIR/parse-error.rs:74 :14
194
+ --> $DIR/parse-error.rs:73 :14
195
195
|
196
196
LL | asm!(format!("{{{}}}", 0), in(reg) foo);
197
197
| ^^^^^^^^^^^^^^^^^^^^
198
198
|
199
199
= note: this error originates in the macro `format` (in Nightly builds, run with -Z macro-backtrace for more info)
200
200
201
201
error: asm template must be a string literal
202
- --> $DIR/parse-error.rs:76 :21
202
+ --> $DIR/parse-error.rs:75 :21
203
203
|
204
204
LL | asm!("{1}", format!("{{{}}}", 0), in(reg) foo, out(reg) bar);
205
205
| ^^^^^^^^^^^^^^^^^^^^
206
206
|
207
207
= note: this error originates in the macro `format` (in Nightly builds, run with -Z macro-backtrace for more info)
208
208
209
209
error: _ cannot be used for input operands
210
- --> $DIR/parse-error.rs:78 :28
210
+ --> $DIR/parse-error.rs:77 :28
211
211
|
212
212
LL | asm!("{}", in(reg) _);
213
213
| ^
214
214
215
215
error: _ cannot be used for input operands
216
- --> $DIR/parse-error.rs:80 :31
216
+ --> $DIR/parse-error.rs:79 :31
217
217
|
218
218
LL | asm!("{}", inout(reg) _);
219
219
| ^
220
220
221
221
error: _ cannot be used for input operands
222
- --> $DIR/parse-error.rs:82 :35
222
+ --> $DIR/parse-error.rs:81 :35
223
223
|
224
224
LL | asm!("{}", inlateout(reg) _);
225
225
| ^
226
226
227
227
error: requires at least a template string argument
228
- --> $DIR/parse-error.rs:89 :1
228
+ --> $DIR/parse-error.rs:88 :1
229
229
|
230
230
LL | global_asm!();
231
231
| ^^^^^^^^^^^^^
232
232
233
233
error: asm template must be a string literal
234
- --> $DIR/parse-error.rs:91 :13
234
+ --> $DIR/parse-error.rs:90 :13
235
235
|
236
236
LL | global_asm!(FOO);
237
237
| ^^^
238
238
239
239
error: expected token: `,`
240
- --> $DIR/parse-error.rs:93 :18
240
+ --> $DIR/parse-error.rs:92 :18
241
241
|
242
242
LL | global_asm!("{}" FOO);
243
243
| ^^^ expected `,`
244
244
245
245
error: expected operand, options, or additional template string
246
- --> $DIR/parse-error.rs:95 :19
246
+ --> $DIR/parse-error.rs:94 :19
247
247
|
248
248
LL | global_asm!("{}", FOO);
249
249
| ^^^ expected operand, options, or additional template string
250
250
251
251
error: expected expression, found end of macro arguments
252
- --> $DIR/parse-error.rs:97 :24
252
+ --> $DIR/parse-error.rs:96 :24
253
253
|
254
254
LL | global_asm!("{}", const);
255
255
| ^ expected expression
256
256
257
257
error: expected one of `,`, `.`, `?`, or an operator, found `FOO`
258
- --> $DIR/parse-error.rs:99 :30
258
+ --> $DIR/parse-error.rs:98 :30
259
259
|
260
260
LL | global_asm!("{}", const(reg) FOO);
261
261
| ^^^ expected one of `,`, `.`, `?`, or an operator
262
262
263
263
error: expected one of `)`, `att_syntax`, or `raw`, found `FOO`
264
- --> $DIR/parse-error.rs:101 :25
264
+ --> $DIR/parse-error.rs:100 :25
265
265
|
266
266
LL | global_asm!("", options(FOO));
267
267
| ^^^ expected one of `)`, `att_syntax`, or `raw`
268
268
269
269
error: expected one of `)`, `att_syntax`, or `raw`, found `nomem`
270
- --> $DIR/parse-error.rs:103 :25
270
+ --> $DIR/parse-error.rs:102 :25
271
271
|
272
272
LL | global_asm!("", options(nomem FOO));
273
273
| ^^^^^ expected one of `)`, `att_syntax`, or `raw`
274
274
275
275
error: expected one of `)`, `att_syntax`, or `raw`, found `nomem`
276
- --> $DIR/parse-error.rs:105 :25
276
+ --> $DIR/parse-error.rs:104 :25
277
277
|
278
278
LL | global_asm!("", options(nomem, FOO));
279
279
| ^^^^^ expected one of `)`, `att_syntax`, or `raw`
280
280
281
281
error: arguments are not allowed after options
282
- --> $DIR/parse-error.rs:107 :30
282
+ --> $DIR/parse-error.rs:106 :30
283
283
|
284
284
LL | global_asm!("{}", options(), const FOO);
285
285
| --------- ^^^^^^^^^ argument
286
286
| |
287
287
| previous options
288
288
289
289
error: expected string literal
290
- --> $DIR/parse-error.rs:109 :29
290
+ --> $DIR/parse-error.rs:108 :29
291
291
|
292
292
LL | global_asm!("", clobber_abi(FOO));
293
293
| ^^^ not a string literal
294
294
295
- error: expected `) `, found `FOO`
296
- --> $DIR/parse-error.rs:111 :33
295
+ error: expected one of `)` or `, `, found `FOO`
296
+ --> $DIR/parse-error.rs:110 :33
297
297
|
298
298
LL | global_asm!("", clobber_abi("C" FOO));
299
- | ^^^ expected `) `
299
+ | ^^^ expected one of `)` or `, `
300
300
301
- error: expected `)`, found `,`
302
- --> $DIR/parse-error.rs:113:32
301
+ error: expected string literal
302
+ --> $DIR/parse-error.rs:112:34
303
303
|
304
304
LL | global_asm!("", clobber_abi("C", FOO));
305
- | ^ expected `)`
305
+ | ^^^ not a string literal
306
306
307
307
error: arguments are not allowed after clobber_abi
308
- --> $DIR/parse-error.rs:115 :37
308
+ --> $DIR/parse-error.rs:114 :37
309
309
|
310
310
LL | global_asm!("{}", clobber_abi("C"), const FOO);
311
311
| ---------------- ^^^^^^^^^ argument
312
312
| |
313
313
| clobber_abi
314
314
315
315
error: `clobber_abi` cannot be used with `global_asm!`
316
- --> $DIR/parse-error.rs:115 :19
316
+ --> $DIR/parse-error.rs:114 :19
317
317
|
318
318
LL | global_asm!("{}", clobber_abi("C"), const FOO);
319
319
| ^^^^^^^^^^^^^^^^
320
320
321
321
error: clobber_abi is not allowed after options
322
- --> $DIR/parse-error.rs:118 :28
322
+ --> $DIR/parse-error.rs:117 :28
323
323
|
324
324
LL | global_asm!("", options(), clobber_abi("C"));
325
325
| --------- ^^^^^^^^^^^^^^^^
326
326
| |
327
327
| options
328
328
329
329
error: clobber_abi is not allowed after options
330
- --> $DIR/parse-error.rs:120 :30
330
+ --> $DIR/parse-error.rs:119 :30
331
331
|
332
332
LL | global_asm!("{}", options(), clobber_abi("C"), const FOO);
333
333
| --------- ^^^^^^^^^^^^^^^^
334
334
| |
335
335
| options
336
336
337
- error: `clobber_abi` cannot be used with `global_asm!`
338
- --> $DIR/parse-error.rs:122:35
339
- |
340
- LL | global_asm!("", clobber_abi("C"), clobber_abi("C"));
341
- | ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^
342
-
343
337
error: duplicate argument named `a`
344
- --> $DIR/parse-error.rs:124 :35
338
+ --> $DIR/parse-error.rs:121 :35
345
339
|
346
340
LL | global_asm!("{a}", a = const FOO, a = const BAR);
347
341
| ------------- ^^^^^^^^^^^^^ duplicate argument
348
342
| |
349
343
| previously here
350
344
351
345
error: argument never used
352
- --> $DIR/parse-error.rs:124 :35
346
+ --> $DIR/parse-error.rs:121 :35
353
347
|
354
348
LL | global_asm!("{a}", a = const FOO, a = const BAR);
355
349
| ^^^^^^^^^^^^^ argument never used
356
350
|
357
351
= help: if this argument is intentionally unused, consider using it in an asm comment: `"/* {1} */"`
358
352
359
353
error: expected one of `clobber_abi`, `const`, or `options`, found `""`
360
- --> $DIR/parse-error.rs:127 :28
354
+ --> $DIR/parse-error.rs:124 :28
361
355
|
362
356
LL | global_asm!("", options(), "");
363
357
| ^^ expected one of `clobber_abi`, `const`, or `options`
364
358
365
359
error: expected one of `clobber_abi`, `const`, or `options`, found `"{}"`
366
- --> $DIR/parse-error.rs:129 :30
360
+ --> $DIR/parse-error.rs:126 :30
367
361
|
368
362
LL | global_asm!("{}", const FOO, "{}", const FOO);
369
363
| ^^^^ expected one of `clobber_abi`, `const`, or `options`
370
364
371
365
error: asm template must be a string literal
372
- --> $DIR/parse-error.rs:131 :13
366
+ --> $DIR/parse-error.rs:128 :13
373
367
|
374
368
LL | global_asm!(format!("{{{}}}", 0), const FOO);
375
369
| ^^^^^^^^^^^^^^^^^^^^
376
370
|
377
371
= note: this error originates in the macro `format` (in Nightly builds, run with -Z macro-backtrace for more info)
378
372
379
373
error: asm template must be a string literal
380
- --> $DIR/parse-error.rs:133 :20
374
+ --> $DIR/parse-error.rs:130 :20
381
375
|
382
376
LL | global_asm!("{1}", format!("{{{}}}", 0), const FOO, const BAR);
383
377
| ^^^^^^^^^^^^^^^^^^^^
@@ -403,7 +397,7 @@ LL | asm!("{}", clobber_abi("C"), const foo);
403
397
| ^^^ non-constant value
404
398
405
399
error[E0435]: attempt to use a non-constant value in a constant
406
- --> $DIR/parse-error.rs:54 :31
400
+ --> $DIR/parse-error.rs:53 :31
407
401
|
408
402
LL | let mut foo = 0;
409
403
| ---------- help: consider using `const` instead of `let`: `const foo`
@@ -412,7 +406,7 @@ LL | asm!("{a}", a = const foo, a = const bar);
412
406
| ^^^ non-constant value
413
407
414
408
error[E0435]: attempt to use a non-constant value in a constant
415
- --> $DIR/parse-error.rs:54 :46
409
+ --> $DIR/parse-error.rs:53 :46
416
410
|
417
411
LL | let mut bar = 0;
418
412
| ---------- help: consider using `const` instead of `let`: `const bar`
@@ -421,7 +415,7 @@ LL | asm!("{a}", a = const foo, a = const bar);
421
415
| ^^^ non-constant value
422
416
423
417
error[E0435]: attempt to use a non-constant value in a constant
424
- --> $DIR/parse-error.rs:61 :45
418
+ --> $DIR/parse-error.rs:60 :45
425
419
|
426
420
LL | let mut bar = 0;
427
421
| ---------- help: consider using `const` instead of `let`: `const bar`
@@ -430,7 +424,7 @@ LL | asm!("{a}", in("x0") foo, a = const bar);
430
424
| ^^^ non-constant value
431
425
432
426
error[E0435]: attempt to use a non-constant value in a constant
433
- --> $DIR/parse-error.rs:64 :45
427
+ --> $DIR/parse-error.rs:63 :45
434
428
|
435
429
LL | let mut bar = 0;
436
430
| ---------- help: consider using `const` instead of `let`: `const bar`
@@ -439,14 +433,14 @@ LL | asm!("{a}", in("x0") foo, a = const bar);
439
433
| ^^^ non-constant value
440
434
441
435
error[E0435]: attempt to use a non-constant value in a constant
442
- --> $DIR/parse-error.rs:67 :41
436
+ --> $DIR/parse-error.rs:66 :41
443
437
|
444
438
LL | let mut bar = 0;
445
439
| ---------- help: consider using `const` instead of `let`: `const bar`
446
440
...
447
441
LL | asm!("{1}", in("x0") foo, const bar);
448
442
| ^^^ non-constant value
449
443
450
- error: aborting due to 65 previous errors
444
+ error: aborting due to 64 previous errors
451
445
452
446
For more information about this error, try `rustc --explain E0435`.
0 commit comments