@@ -218,92 +218,104 @@ error: expected one of `)`, `att_syntax`, or `raw`, found `FOO`
218
218
LL | global_asm!("", options(FOO));
219
219
| ^^^ expected one of `)`, `att_syntax`, or `raw`
220
220
221
- error: expected one of `)`, `att_syntax`, or `raw`, found `nomem `
221
+ error: the `nomem` option cannot be used with `global_asm! `
222
222
--> $DIR/parse-error.rs:99:25
223
223
|
224
224
LL | global_asm!("", options(nomem FOO));
225
- | ^^^^^ expected one of `)`, `att_syntax`, or `raw`
225
+ | ^^^^^ the `nomem` option is not meaningful for global-scoped inline assembly
226
226
227
- error: expected one of `)`, `att_syntax`, or `raw`, found `nomem`
228
- --> $DIR/parse-error.rs:101:25
227
+ error: expected one of `)` or `,`, found `FOO`
228
+ --> $DIR/parse-error.rs:99:31
229
+ |
230
+ LL | global_asm!("", options(nomem FOO));
231
+ | ^^^ expected one of `)` or `,`
232
+
233
+ error: the `nomem` option cannot be used with `global_asm!`
234
+ --> $DIR/parse-error.rs:102:25
235
+ |
236
+ LL | global_asm!("", options(nomem, FOO));
237
+ | ^^^^^ the `nomem` option is not meaningful for global-scoped inline assembly
238
+
239
+ error: expected one of `)`, `att_syntax`, or `raw`, found `FOO`
240
+ --> $DIR/parse-error.rs:102:32
229
241
|
230
242
LL | global_asm!("", options(nomem, FOO));
231
- | ^^ ^^^ expected one of `)`, `att_syntax`, or `raw`
243
+ | ^^^ expected one of `)`, `att_syntax`, or `raw`
232
244
233
245
error: expected string literal
234
- --> $DIR/parse-error.rs:104 :29
246
+ --> $DIR/parse-error.rs:106 :29
235
247
|
236
248
LL | global_asm!("", clobber_abi(FOO));
237
249
| ^^^ not a string literal
238
250
239
251
error: expected one of `)` or `,`, found `FOO`
240
- --> $DIR/parse-error.rs:106 :33
252
+ --> $DIR/parse-error.rs:108 :33
241
253
|
242
254
LL | global_asm!("", clobber_abi("C" FOO));
243
255
| ^^^ expected one of `)` or `,`
244
256
245
257
error: expected string literal
246
- --> $DIR/parse-error.rs:108 :34
258
+ --> $DIR/parse-error.rs:110 :34
247
259
|
248
260
LL | global_asm!("", clobber_abi("C", FOO));
249
261
| ^^^ not a string literal
250
262
251
263
error: `clobber_abi` cannot be used with `global_asm!`
252
- --> $DIR/parse-error.rs:110 :19
264
+ --> $DIR/parse-error.rs:112 :19
253
265
|
254
266
LL | global_asm!("{}", clobber_abi("C"), const FOO);
255
267
| ^^^^^^^^^^^^^^^^
256
268
257
269
error: `clobber_abi` cannot be used with `global_asm!`
258
- --> $DIR/parse-error.rs:112 :28
270
+ --> $DIR/parse-error.rs:114 :28
259
271
|
260
272
LL | global_asm!("", options(), clobber_abi("C"));
261
273
| ^^^^^^^^^^^^^^^^
262
274
263
275
error: `clobber_abi` cannot be used with `global_asm!`
264
- --> $DIR/parse-error.rs:114 :30
276
+ --> $DIR/parse-error.rs:116 :30
265
277
|
266
278
LL | global_asm!("{}", options(), clobber_abi("C"), const FOO);
267
279
| ^^^^^^^^^^^^^^^^
268
280
269
281
error: duplicate argument named `a`
270
- --> $DIR/parse-error.rs:116 :35
282
+ --> $DIR/parse-error.rs:118 :35
271
283
|
272
284
LL | global_asm!("{a}", a = const FOO, a = const BAR);
273
285
| ------------- ^^^^^^^^^^^^^ duplicate argument
274
286
| |
275
287
| previously here
276
288
277
289
error: argument never used
278
- --> $DIR/parse-error.rs:116 :35
290
+ --> $DIR/parse-error.rs:118 :35
279
291
|
280
292
LL | global_asm!("{a}", a = const FOO, a = const BAR);
281
293
| ^^^^^^^^^^^^^ argument never used
282
294
|
283
295
= help: if this argument is intentionally unused, consider using it in an asm comment: `"/* {1} */"`
284
296
285
297
error: expected one of `clobber_abi`, `const`, `options`, or `sym`, found `""`
286
- --> $DIR/parse-error.rs:119 :28
298
+ --> $DIR/parse-error.rs:121 :28
287
299
|
288
300
LL | global_asm!("", options(), "");
289
301
| ^^ expected one of `clobber_abi`, `const`, `options`, or `sym`
290
302
291
303
error: expected one of `clobber_abi`, `const`, `options`, or `sym`, found `"{}"`
292
- --> $DIR/parse-error.rs:121 :30
304
+ --> $DIR/parse-error.rs:123 :30
293
305
|
294
306
LL | global_asm!("{}", const FOO, "{}", const FOO);
295
307
| ^^^^ expected one of `clobber_abi`, `const`, `options`, or `sym`
296
308
297
309
error: asm template must be a string literal
298
- --> $DIR/parse-error.rs:123 :13
310
+ --> $DIR/parse-error.rs:125 :13
299
311
|
300
312
LL | global_asm!(format!("{{{}}}", 0), const FOO);
301
313
| ^^^^^^^^^^^^^^^^^^^^
302
314
|
303
315
= note: this error originates in the macro `format` (in Nightly builds, run with -Z macro-backtrace for more info)
304
316
305
317
error: asm template must be a string literal
306
- --> $DIR/parse-error.rs:125 :20
318
+ --> $DIR/parse-error.rs:127 :20
307
319
|
308
320
LL | global_asm!("{1}", format!("{{{}}}", 0), const FOO, const BAR);
309
321
| ^^^^^^^^^^^^^^^^^^^^
@@ -398,6 +410,6 @@ help: consider using `const` instead of `let`
398
410
LL | const bar: /* Type */ = 0;
399
411
| ~~~~~ ++++++++++++
400
412
401
- error: aborting due to 57 previous errors
413
+ error: aborting due to 59 previous errors
402
414
403
415
For more information about this error, try `rustc --explain E0435`.
0 commit comments