@@ -270,148 +270,136 @@ error: expected one of `)`, `att_syntax`, or `raw`, found `FOO`
270
270
LL | global_asm!("", options(FOO,));
271
271
| ^^^ expected one of `)`, `att_syntax`, or `raw`
272
272
273
- error: the `nomem` option cannot be used with `global_asm!`
274
- --> $DIR/parse-error.rs:115:25
275
- |
276
- LL | global_asm!("", options(nomem FOO));
277
- | ^^^^^ the `nomem` option is not meaningful for global-scoped inline assembly
278
-
279
273
error: expected one of `)` or `,`, found `FOO`
280
274
--> $DIR/parse-error.rs:115:31
281
275
|
282
276
LL | global_asm!("", options(nomem FOO));
283
277
| ^^^ expected one of `)` or `,`
284
278
285
- error: the `nomem` option cannot be used with `global_asm!`
286
- --> $DIR/parse-error.rs:118:25
287
- |
288
- LL | global_asm!("", options(nomem, FOO));
289
- | ^^^^^ the `nomem` option is not meaningful for global-scoped inline assembly
290
-
291
279
error: expected one of `)`, `att_syntax`, or `raw`, found `FOO`
292
- --> $DIR/parse-error.rs:118 :32
280
+ --> $DIR/parse-error.rs:117 :32
293
281
|
294
282
LL | global_asm!("", options(nomem, FOO));
295
283
| ^^^ expected one of `)`, `att_syntax`, or `raw`
296
284
297
285
error: expected string literal
298
- --> $DIR/parse-error.rs:122 :29
286
+ --> $DIR/parse-error.rs:120 :29
299
287
|
300
288
LL | global_asm!("", clobber_abi(FOO));
301
289
| ^^^ not a string literal
302
290
303
291
error: expected one of `)` or `,`, found `FOO`
304
- --> $DIR/parse-error.rs:124 :33
292
+ --> $DIR/parse-error.rs:122 :33
305
293
|
306
294
LL | global_asm!("", clobber_abi("C" FOO));
307
295
| ^^^ expected one of `)` or `,`
308
296
309
297
error: expected string literal
310
- --> $DIR/parse-error.rs:126 :34
298
+ --> $DIR/parse-error.rs:124 :34
311
299
|
312
300
LL | global_asm!("", clobber_abi("C", FOO));
313
301
| ^^^ not a string literal
314
302
315
303
error: `clobber_abi` cannot be used with `global_asm!`
316
- --> $DIR/parse-error.rs:128 :19
304
+ --> $DIR/parse-error.rs:126 :19
317
305
|
318
306
LL | global_asm!("{}", clobber_abi("C"), const FOO);
319
307
| ^^^^^^^^^^^^^^^^
320
308
321
309
error: `clobber_abi` cannot be used with `global_asm!`
322
- --> $DIR/parse-error.rs:130 :28
310
+ --> $DIR/parse-error.rs:128 :28
323
311
|
324
312
LL | global_asm!("", options(), clobber_abi("C"));
325
313
| ^^^^^^^^^^^^^^^^
326
314
327
315
error: `clobber_abi` cannot be used with `global_asm!`
328
- --> $DIR/parse-error.rs:132 :30
316
+ --> $DIR/parse-error.rs:130 :30
329
317
|
330
318
LL | global_asm!("{}", options(), clobber_abi("C"), const FOO);
331
319
| ^^^^^^^^^^^^^^^^
332
320
333
321
error: `clobber_abi` cannot be used with `global_asm!`
334
- --> $DIR/parse-error.rs:134 :17
322
+ --> $DIR/parse-error.rs:132 :17
335
323
|
336
324
LL | global_asm!("", clobber_abi("C"), clobber_abi("C"));
337
325
| ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^
338
326
339
327
error: duplicate argument named `a`
340
- --> $DIR/parse-error.rs:136 :35
328
+ --> $DIR/parse-error.rs:134 :35
341
329
|
342
330
LL | global_asm!("{a}", a = const FOO, a = const BAR);
343
331
| ------------- ^^^^^^^^^^^^^ duplicate argument
344
332
| |
345
333
| previously here
346
334
347
335
error: argument never used
348
- --> $DIR/parse-error.rs:136 :35
336
+ --> $DIR/parse-error.rs:134 :35
349
337
|
350
338
LL | global_asm!("{a}", a = const FOO, a = const BAR);
351
339
| ^^^^^^^^^^^^^ argument never used
352
340
|
353
341
= help: if this argument is intentionally unused, consider using it in an asm comment: `"/* {1} */"`
354
342
355
343
error: expected one of `clobber_abi`, `const`, `options`, or `sym`, found `""`
356
- --> $DIR/parse-error.rs:139 :28
344
+ --> $DIR/parse-error.rs:137 :28
357
345
|
358
346
LL | global_asm!("", options(), "");
359
347
| ^^ expected one of `clobber_abi`, `const`, `options`, or `sym`
360
348
361
349
error: expected one of `clobber_abi`, `const`, `options`, or `sym`, found `"{}"`
362
- --> $DIR/parse-error.rs:141 :30
350
+ --> $DIR/parse-error.rs:139 :30
363
351
|
364
352
LL | global_asm!("{}", const FOO, "{}", const FOO);
365
353
| ^^^^ expected one of `clobber_abi`, `const`, `options`, or `sym`
366
354
367
355
error: asm template must be a string literal
368
- --> $DIR/parse-error.rs:143 :13
356
+ --> $DIR/parse-error.rs:141 :13
369
357
|
370
358
LL | global_asm!(format!("{{{}}}", 0), const FOO);
371
359
| ^^^^^^^^^^^^^^^^^^^^
372
360
|
373
361
= note: this error originates in the macro `format` (in Nightly builds, run with -Z macro-backtrace for more info)
374
362
375
363
error: asm template must be a string literal
376
- --> $DIR/parse-error.rs:145 :20
364
+ --> $DIR/parse-error.rs:143 :20
377
365
|
378
366
LL | global_asm!("{1}", format!("{{{}}}", 0), const FOO, const BAR);
379
367
| ^^^^^^^^^^^^^^^^^^^^
380
368
|
381
369
= note: this error originates in the macro `format` (in Nightly builds, run with -Z macro-backtrace for more info)
382
370
383
371
error: the `in` operand cannot be used with `global_asm!`
384
- --> $DIR/parse-error.rs:148 :19
372
+ --> $DIR/parse-error.rs:146 :19
385
373
|
386
374
LL | global_asm!("{}", in(reg));
387
375
| ^^ the `in` operand is not meaningful for global-scoped inline assembly, remove it
388
376
389
377
error: the `out` operand cannot be used with `global_asm!`
390
- --> $DIR/parse-error.rs:150 :19
378
+ --> $DIR/parse-error.rs:148 :19
391
379
|
392
380
LL | global_asm!("{}", out(reg));
393
381
| ^^^ the `out` operand is not meaningful for global-scoped inline assembly, remove it
394
382
395
383
error: the `lateout` operand cannot be used with `global_asm!`
396
- --> $DIR/parse-error.rs:152 :19
384
+ --> $DIR/parse-error.rs:150 :19
397
385
|
398
386
LL | global_asm!("{}", lateout(reg));
399
387
| ^^^^^^^ the `lateout` operand is not meaningful for global-scoped inline assembly, remove it
400
388
401
389
error: the `inout` operand cannot be used with `global_asm!`
402
- --> $DIR/parse-error.rs:154 :19
390
+ --> $DIR/parse-error.rs:152 :19
403
391
|
404
392
LL | global_asm!("{}", inout(reg));
405
393
| ^^^^^ the `inout` operand is not meaningful for global-scoped inline assembly, remove it
406
394
407
395
error: the `inlateout` operand cannot be used with `global_asm!`
408
- --> $DIR/parse-error.rs:156 :19
396
+ --> $DIR/parse-error.rs:154 :19
409
397
|
410
398
LL | global_asm!("{}", inlateout(reg));
411
399
| ^^^^^^^^^ the `inlateout` operand is not meaningful for global-scoped inline assembly, remove it
412
400
413
401
error: the `label` operand cannot be used with `global_asm!`
414
- --> $DIR/parse-error.rs:158 :19
402
+ --> $DIR/parse-error.rs:156 :19
415
403
|
416
404
LL | global_asm!("{}", label(reg));
417
405
| ^^^^^ the `label` operand is not meaningful for global-scoped inline assembly, remove it
@@ -476,6 +464,6 @@ LL - let mut bar = 0;
476
464
LL + const bar: /* Type */ = 0;
477
465
|
478
466
479
- error: aborting due to 72 previous errors
467
+ error: aborting due to 70 previous errors
480
468
481
469
For more information about this error, try `rustc --explain E0435`.
0 commit comments