@@ -245,7 +245,97 @@ LL | ab: nop // ab: does foo
245
245
= note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
246
246
247
247
error: avoid using named labels in inline assembly
248
- --> $DIR/named-asm-labels.rs:124:14
248
+ --> $DIR/named-asm-labels.rs:132:19
249
+ |
250
+ LL | asm!("test_{}: nop", in(reg) 10);
251
+ | ^^^^^^^
252
+ |
253
+ = help: only local labels of the form `<number>:` should be used in inline asm
254
+ = note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
255
+
256
+ error: avoid using named labels in inline assembly
257
+ --> $DIR/named-asm-labels.rs:134:15
258
+ |
259
+ LL | asm!("test_{0:w}: nop", in(reg) 10);
260
+ | ^^^^^^^
261
+ |
262
+ = help: only local labels of the form `<number>:` should be used in inline asm
263
+ = note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
264
+
265
+ error: avoid using named labels in inline assembly
266
+ --> $DIR/named-asm-labels.rs:135:15
267
+ |
268
+ LL | asm!("test_{}: nop", const 10);
269
+ | ^^^^^^^
270
+ |
271
+ = help: only local labels of the form `<number>:` should be used in inline asm
272
+ = note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
273
+
274
+ error: avoid using named labels in inline assembly
275
+ --> $DIR/named-asm-labels.rs:136:15
276
+ |
277
+ LL | asm!("test_{}: nop", sym main);
278
+ | ^^^^^^^
279
+ |
280
+ = help: only local labels of the form `<number>:` should be used in inline asm
281
+ = note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
282
+
283
+ error: avoid using named labels in inline assembly
284
+ --> $DIR/named-asm-labels.rs:137:15
285
+ |
286
+ LL | asm!("{}_test: nop", const 10);
287
+ | ^^^^^^^
288
+ |
289
+ = help: only local labels of the form `<number>:` should be used in inline asm
290
+ = note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
291
+
292
+ error: avoid using named labels in inline assembly
293
+ --> $DIR/named-asm-labels.rs:138:15
294
+ |
295
+ LL | asm!("test_{}_test: nop", const 10);
296
+ | ^^^^^^^^^^^^
297
+ |
298
+ = help: only local labels of the form `<number>:` should be used in inline asm
299
+ = note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
300
+
301
+ error: avoid using named labels in inline assembly
302
+ --> $DIR/named-asm-labels.rs:139:15
303
+ |
304
+ LL | asm!("{}: nop", const 10);
305
+ | ^^
306
+ |
307
+ = help: only local labels of the form `<number>:` should be used in inline asm
308
+ = note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
309
+
310
+ error: avoid using named labels in inline assembly
311
+ --> $DIR/named-asm-labels.rs:141:15
312
+ |
313
+ LL | asm!("{uwu}: nop", uwu = const 10);
314
+ | ^^^^^
315
+ |
316
+ = help: only local labels of the form `<number>:` should be used in inline asm
317
+ = note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
318
+
319
+ error: avoid using named labels in inline assembly
320
+ --> $DIR/named-asm-labels.rs:142:15
321
+ |
322
+ LL | asm!("{0}: nop", const 10);
323
+ | ^^^
324
+ |
325
+ = help: only local labels of the form `<number>:` should be used in inline asm
326
+ = note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
327
+
328
+ error: avoid using named labels in inline assembly
329
+ --> $DIR/named-asm-labels.rs:143:15
330
+ |
331
+ LL | asm!("{1}: nop", "/* {0} */", const 10, const 20);
332
+ | ^^^
333
+ |
334
+ = help: only local labels of the form `<number>:` should be used in inline asm
335
+ = note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
336
+
337
+ error: avoid using named labels in inline assembly
338
+ --> $DIR/named-asm-labels.rs:146:14
249
339
|
250
340
LL | asm!(include_str!("named-asm-labels.s"));
251
341
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -254,21 +344,21 @@ LL | asm!(include_str!("named-asm-labels.s"));
254
344
= note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
255
345
256
346
warning: avoid using named labels in inline assembly
257
- --> $DIR/named-asm-labels.rs:134 :19
347
+ --> $DIR/named-asm-labels.rs:156 :19
258
348
|
259
349
LL | asm!("warned: nop");
260
350
| ^^^^^^
261
351
|
262
352
= help: only local labels of the form `<number>:` should be used in inline asm
263
353
= note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
264
354
note: the lint level is defined here
265
- --> $DIR/named-asm-labels.rs:132 :16
355
+ --> $DIR/named-asm-labels.rs:154 :16
266
356
|
267
357
LL | #[warn(named_asm_labels)]
268
358
| ^^^^^^^^^^^^^^^^
269
359
270
360
error: avoid using named labels in inline assembly
271
- --> $DIR/named-asm-labels.rs:143 :20
361
+ --> $DIR/named-asm-labels.rs:165 :20
272
362
|
273
363
LL | unsafe { asm!(".Lfoo: mov rax, {}; ret;", "nop", const 1, options(noreturn)) }
274
364
| ^^^^^
@@ -277,7 +367,7 @@ LL | unsafe { asm!(".Lfoo: mov rax, {}; ret;", "nop", const 1, options(noret
277
367
= note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
278
368
279
369
error: avoid using named labels in inline assembly
280
- --> $DIR/named-asm-labels.rs:149 :20
370
+ --> $DIR/named-asm-labels.rs:171 :20
281
371
|
282
372
LL | unsafe { asm!(".Lbar: mov rax, {}; ret;", "nop", const 1, options(noreturn)) }
283
373
| ^^^^^
@@ -286,7 +376,7 @@ LL | unsafe { asm!(".Lbar: mov rax, {}; ret;", "nop", const 1, options(noret
286
376
= note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
287
377
288
378
error: avoid using named labels in inline assembly
289
- --> $DIR/named-asm-labels.rs:157 :20
379
+ --> $DIR/named-asm-labels.rs:179 :20
290
380
|
291
381
LL | unsafe { asm!(".Laaa: nop; ret;", options(noreturn)) }
292
382
| ^^^^^
@@ -295,7 +385,7 @@ LL | unsafe { asm!(".Laaa: nop; ret;", options(noreturn)) }
295
385
= note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
296
386
297
387
error: avoid using named labels in inline assembly
298
- --> $DIR/named-asm-labels.rs:167 :24
388
+ --> $DIR/named-asm-labels.rs:189 :24
299
389
|
300
390
LL | unsafe { asm!(".Lbbb: nop; ret;", options(noreturn)) }
301
391
| ^^^^^
@@ -304,7 +394,7 @@ LL | unsafe { asm!(".Lbbb: nop; ret;", options(noreturn)) }
304
394
= note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
305
395
306
396
error: avoid using named labels in inline assembly
307
- --> $DIR/named-asm-labels.rs:176 :15
397
+ --> $DIR/named-asm-labels.rs:198 :15
308
398
|
309
399
LL | asm!("closure1: nop");
310
400
| ^^^^^^^^
@@ -313,7 +403,7 @@ LL | asm!("closure1: nop");
313
403
= note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
314
404
315
405
error: avoid using named labels in inline assembly
316
- --> $DIR/named-asm-labels.rs:180 :15
406
+ --> $DIR/named-asm-labels.rs:202 :15
317
407
|
318
408
LL | asm!("closure2: nop");
319
409
| ^^^^^^^^
@@ -322,13 +412,13 @@ LL | asm!("closure2: nop");
322
412
= note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
323
413
324
414
error: avoid using named labels in inline assembly
325
- --> $DIR/named-asm-labels.rs:190 :19
415
+ --> $DIR/named-asm-labels.rs:212 :19
326
416
|
327
417
LL | asm!("closure3: nop");
328
418
| ^^^^^^^^
329
419
|
330
420
= help: only local labels of the form `<number>:` should be used in inline asm
331
421
= note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
332
422
333
- error: aborting due to 35 previous errors; 1 warning emitted
423
+ error: aborting due to 45 previous errors; 1 warning emitted
334
424
0 commit comments