@@ -264,106 +264,124 @@ error: expected one of `)`, `att_syntax`, or `raw`, found `FOO`
264
264
LL | global_asm!("", options(FOO));
265
265
| ^^^ expected one of `)`, `att_syntax`, or `raw`
266
266
267
- error: expected one of `)`, `att_syntax`, or `raw`, found `nomem `
267
+ error: expected one of `)`, `att_syntax`, or `raw`, found `FOO `
268
268
--> $DIR/parse-error.rs:115:25
269
269
|
270
- LL | global_asm!("", options(nomem FOO));
271
- | ^^^^^ expected one of `)`, `att_syntax`, or `raw`
270
+ LL | global_asm!("", options(FOO, ));
271
+ | ^^^ expected one of `)`, `att_syntax`, or `raw`
272
272
273
- error: expected one of `)`, `att_syntax`, or `raw`, found `nomem `
273
+ error: the `nomem` option cannot be used with `global_asm! `
274
274
--> $DIR/parse-error.rs:117:25
275
275
|
276
+ LL | global_asm!("", options(nomem FOO));
277
+ | ^^^^^ the `nomem` option is not meaningful for global-scoped inline assembly
278
+
279
+ error: expected one of `)` or `,`, found `FOO`
280
+ --> $DIR/parse-error.rs:117:31
281
+ |
282
+ LL | global_asm!("", options(nomem FOO));
283
+ | ^^^ expected one of `)` or `,`
284
+
285
+ error: the `nomem` option cannot be used with `global_asm!`
286
+ --> $DIR/parse-error.rs:120:25
287
+ |
288
+ LL | global_asm!("", options(nomem, FOO));
289
+ | ^^^^^ the `nomem` option is not meaningful for global-scoped inline assembly
290
+
291
+ error: expected one of `)`, `att_syntax`, or `raw`, found `FOO`
292
+ --> $DIR/parse-error.rs:120:32
293
+ |
276
294
LL | global_asm!("", options(nomem, FOO));
277
- | ^^ ^^^ expected one of `)`, `att_syntax`, or `raw`
295
+ | ^^^ expected one of `)`, `att_syntax`, or `raw`
278
296
279
297
error: expected string literal
280
- --> $DIR/parse-error.rs:120 :29
298
+ --> $DIR/parse-error.rs:124 :29
281
299
|
282
300
LL | global_asm!("", clobber_abi(FOO));
283
301
| ^^^ not a string literal
284
302
285
303
error: expected one of `)` or `,`, found `FOO`
286
- --> $DIR/parse-error.rs:122 :33
304
+ --> $DIR/parse-error.rs:126 :33
287
305
|
288
306
LL | global_asm!("", clobber_abi("C" FOO));
289
307
| ^^^ expected one of `)` or `,`
290
308
291
309
error: expected string literal
292
- --> $DIR/parse-error.rs:124 :34
310
+ --> $DIR/parse-error.rs:128 :34
293
311
|
294
312
LL | global_asm!("", clobber_abi("C", FOO));
295
313
| ^^^ not a string literal
296
314
297
315
error: `clobber_abi` cannot be used with `global_asm!`
298
- --> $DIR/parse-error.rs:126 :19
316
+ --> $DIR/parse-error.rs:130 :19
299
317
|
300
318
LL | global_asm!("{}", clobber_abi("C"), const FOO);
301
319
| ^^^^^^^^^^^^^^^^
302
320
303
321
error: `clobber_abi` cannot be used with `global_asm!`
304
- --> $DIR/parse-error.rs:128 :28
322
+ --> $DIR/parse-error.rs:132 :28
305
323
|
306
324
LL | global_asm!("", options(), clobber_abi("C"));
307
325
| ^^^^^^^^^^^^^^^^
308
326
309
327
error: `clobber_abi` cannot be used with `global_asm!`
310
- --> $DIR/parse-error.rs:130 :30
328
+ --> $DIR/parse-error.rs:134 :30
311
329
|
312
330
LL | global_asm!("{}", options(), clobber_abi("C"), const FOO);
313
331
| ^^^^^^^^^^^^^^^^
314
332
315
333
error: `clobber_abi` cannot be used with `global_asm!`
316
- --> $DIR/parse-error.rs:132 :17
334
+ --> $DIR/parse-error.rs:136 :17
317
335
|
318
336
LL | global_asm!("", clobber_abi("C"), clobber_abi("C"));
319
337
| ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^
320
338
321
339
error: duplicate argument named `a`
322
- --> $DIR/parse-error.rs:134 :35
340
+ --> $DIR/parse-error.rs:138 :35
323
341
|
324
342
LL | global_asm!("{a}", a = const FOO, a = const BAR);
325
343
| ------------- ^^^^^^^^^^^^^ duplicate argument
326
344
| |
327
345
| previously here
328
346
329
347
error: argument never used
330
- --> $DIR/parse-error.rs:134 :35
348
+ --> $DIR/parse-error.rs:138 :35
331
349
|
332
350
LL | global_asm!("{a}", a = const FOO, a = const BAR);
333
351
| ^^^^^^^^^^^^^ argument never used
334
352
|
335
353
= help: if this argument is intentionally unused, consider using it in an asm comment: `"/* {1} */"`
336
354
337
355
error: expected one of `clobber_abi`, `const`, `options`, or `sym`, found `""`
338
- --> $DIR/parse-error.rs:137 :28
356
+ --> $DIR/parse-error.rs:141 :28
339
357
|
340
358
LL | global_asm!("", options(), "");
341
359
| ^^ expected one of `clobber_abi`, `const`, `options`, or `sym`
342
360
343
361
error: expected one of `clobber_abi`, `const`, `options`, or `sym`, found `"{}"`
344
- --> $DIR/parse-error.rs:139 :30
362
+ --> $DIR/parse-error.rs:143 :30
345
363
|
346
364
LL | global_asm!("{}", const FOO, "{}", const FOO);
347
365
| ^^^^ expected one of `clobber_abi`, `const`, `options`, or `sym`
348
366
349
367
error: asm template must be a string literal
350
- --> $DIR/parse-error.rs:141 :13
368
+ --> $DIR/parse-error.rs:145 :13
351
369
|
352
370
LL | global_asm!(format!("{{{}}}", 0), const FOO);
353
371
| ^^^^^^^^^^^^^^^^^^^^
354
372
|
355
373
= note: this error originates in the macro `format` (in Nightly builds, run with -Z macro-backtrace for more info)
356
374
357
375
error: asm template must be a string literal
358
- --> $DIR/parse-error.rs:143 :20
376
+ --> $DIR/parse-error.rs:147 :20
359
377
|
360
378
LL | global_asm!("{1}", format!("{{{}}}", 0), const FOO, const BAR);
361
379
| ^^^^^^^^^^^^^^^^^^^^
362
380
|
363
381
= note: this error originates in the macro `format` (in Nightly builds, run with -Z macro-backtrace for more info)
364
382
365
383
error: expected operand, options, or additional template string
366
- --> $DIR/parse-error.rs:145 :19
384
+ --> $DIR/parse-error.rs:149 :19
367
385
|
368
386
LL | global_asm!("{}", label {});
369
387
| ^^^^^^^^ expected operand, options, or additional template string
@@ -423,6 +441,6 @@ help: consider using `const` instead of `let`
423
441
LL | const bar: /* Type */ = 0;
424
442
| ~~~~~ ++++++++++++
425
443
426
- error: aborting due to 64 previous errors
444
+ error: aborting due to 67 previous errors
427
445
428
446
For more information about this error, try `rustc --explain E0435`.
0 commit comments