2021-07-29 17:56:31 -05:00
|
|
|
error: avoid using named labels in inline assembly
|
2021-12-09 18:15:33 -06:00
|
|
|
--> $DIR/named-asm-labels.rs:24:15
|
2021-07-20 15:35:26 -05:00
|
|
|
|
|
|
|
|
LL | asm!("bar: nop");
|
|
|
|
| ^^^
|
|
|
|
|
|
2021-07-29 17:56:31 -05:00
|
|
|
= help: only local labels of the form `<number>:` should be used in inline asm
|
2022-01-06 07:39:42 -06:00
|
|
|
= 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
|
2022-09-18 10:55:36 -05:00
|
|
|
= note: `#[deny(named_asm_labels)]` on by default
|
2021-07-20 15:35:26 -05:00
|
|
|
|
2021-07-29 17:56:31 -05:00
|
|
|
error: avoid using named labels in inline assembly
|
2021-12-09 18:15:33 -06:00
|
|
|
--> $DIR/named-asm-labels.rs:27:15
|
2021-07-20 15:35:26 -05:00
|
|
|
|
|
|
|
|
LL | asm!("abcd:");
|
|
|
|
| ^^^^
|
|
|
|
|
|
2021-07-29 17:56:31 -05:00
|
|
|
= help: only local labels of the form `<number>:` should be used in inline asm
|
2022-01-06 07:39:42 -06:00
|
|
|
= 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
|
2021-07-20 15:35:26 -05:00
|
|
|
|
2021-07-29 17:56:31 -05:00
|
|
|
error: avoid using named labels in inline assembly
|
2021-12-09 18:15:33 -06:00
|
|
|
--> $DIR/named-asm-labels.rs:30:15
|
2021-07-20 15:35:26 -05:00
|
|
|
|
|
|
|
|
LL | asm!("foo: bar1: nop");
|
2021-08-04 16:28:30 -05:00
|
|
|
| ^^^ ^^^^
|
2021-07-20 15:35:26 -05:00
|
|
|
|
|
2021-07-29 17:56:31 -05:00
|
|
|
= help: only local labels of the form `<number>:` should be used in inline asm
|
2022-01-06 07:39:42 -06:00
|
|
|
= 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
|
2021-07-20 15:35:26 -05:00
|
|
|
|
2021-07-29 17:56:31 -05:00
|
|
|
error: avoid using named labels in inline assembly
|
2021-12-09 18:15:33 -06:00
|
|
|
--> $DIR/named-asm-labels.rs:34:15
|
2021-07-20 15:35:26 -05:00
|
|
|
|
|
|
|
|
LL | asm!("foo1: nop", "nop");
|
|
|
|
| ^^^^
|
|
|
|
|
|
2021-07-29 17:56:31 -05:00
|
|
|
= help: only local labels of the form `<number>:` should be used in inline asm
|
2022-01-06 07:39:42 -06:00
|
|
|
= 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
|
2021-07-20 15:35:26 -05:00
|
|
|
|
2021-07-29 17:56:31 -05:00
|
|
|
error: avoid using named labels in inline assembly
|
2021-12-09 18:15:33 -06:00
|
|
|
--> $DIR/named-asm-labels.rs:35:15
|
2021-07-20 15:35:26 -05:00
|
|
|
|
|
|
|
|
LL | asm!("foo2: foo3: nop", "nop");
|
2021-08-04 16:28:30 -05:00
|
|
|
| ^^^^ ^^^^
|
2021-07-20 15:35:26 -05:00
|
|
|
|
|
2021-07-29 17:56:31 -05:00
|
|
|
= help: only local labels of the form `<number>:` should be used in inline asm
|
2022-01-06 07:39:42 -06:00
|
|
|
= 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
|
2021-07-20 15:35:26 -05:00
|
|
|
|
2021-07-29 17:56:31 -05:00
|
|
|
error: avoid using named labels in inline assembly
|
2021-12-09 18:15:33 -06:00
|
|
|
--> $DIR/named-asm-labels.rs:37:22
|
2021-07-20 15:35:26 -05:00
|
|
|
|
|
|
|
|
LL | asm!("nop", "foo4: nop");
|
|
|
|
| ^^^^
|
|
|
|
|
|
2021-07-29 17:56:31 -05:00
|
|
|
= help: only local labels of the form `<number>:` should be used in inline asm
|
2022-01-06 07:39:42 -06:00
|
|
|
= 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
|
2021-07-20 15:35:26 -05:00
|
|
|
|
2021-07-29 17:56:31 -05:00
|
|
|
error: avoid using named labels in inline assembly
|
2021-12-09 18:15:33 -06:00
|
|
|
--> $DIR/named-asm-labels.rs:38:15
|
2021-07-20 15:35:26 -05:00
|
|
|
|
|
|
|
|
LL | asm!("foo5: nop", "foo6: nop");
|
|
|
|
| ^^^^
|
|
|
|
|
|
2021-07-29 17:56:31 -05:00
|
|
|
= help: only local labels of the form `<number>:` should be used in inline asm
|
2022-01-06 07:39:42 -06:00
|
|
|
= 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
|
2021-07-20 15:35:26 -05:00
|
|
|
|
2021-07-29 17:56:31 -05:00
|
|
|
error: avoid using named labels in inline assembly
|
2021-12-09 18:15:33 -06:00
|
|
|
--> $DIR/named-asm-labels.rs:38:28
|
2021-07-20 15:35:26 -05:00
|
|
|
|
|
|
|
|
LL | asm!("foo5: nop", "foo6: nop");
|
|
|
|
| ^^^^
|
|
|
|
|
|
2021-07-29 17:56:31 -05:00
|
|
|
= help: only local labels of the form `<number>:` should be used in inline asm
|
2022-01-06 07:39:42 -06:00
|
|
|
= 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
|
2021-07-20 15:35:26 -05:00
|
|
|
|
2021-07-29 17:56:31 -05:00
|
|
|
error: avoid using named labels in inline assembly
|
2021-12-09 18:15:33 -06:00
|
|
|
--> $DIR/named-asm-labels.rs:43:15
|
2021-07-20 15:35:26 -05:00
|
|
|
|
|
|
|
|
LL | asm!("foo7: nop; foo8: nop");
|
2021-08-04 16:28:30 -05:00
|
|
|
| ^^^^ ^^^^
|
2021-07-20 15:35:26 -05:00
|
|
|
|
|
2021-07-29 17:56:31 -05:00
|
|
|
= help: only local labels of the form `<number>:` should be used in inline asm
|
2022-01-06 07:39:42 -06:00
|
|
|
= 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
|
2021-07-20 15:35:26 -05:00
|
|
|
|
2021-07-29 17:56:31 -05:00
|
|
|
error: avoid using named labels in inline assembly
|
2021-12-09 18:15:33 -06:00
|
|
|
--> $DIR/named-asm-labels.rs:45:15
|
2021-07-20 15:35:26 -05:00
|
|
|
|
|
|
|
|
LL | asm!("foo9: nop; nop");
|
|
|
|
| ^^^^
|
|
|
|
|
|
2021-07-29 17:56:31 -05:00
|
|
|
= help: only local labels of the form `<number>:` should be used in inline asm
|
2022-01-06 07:39:42 -06:00
|
|
|
= 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
|
2021-07-20 15:35:26 -05:00
|
|
|
|
2021-07-29 17:56:31 -05:00
|
|
|
error: avoid using named labels in inline assembly
|
2021-12-09 18:15:33 -06:00
|
|
|
--> $DIR/named-asm-labels.rs:46:20
|
2021-07-20 15:35:26 -05:00
|
|
|
|
|
|
|
|
LL | asm!("nop; foo10: nop");
|
|
|
|
| ^^^^^
|
|
|
|
|
|
2021-07-29 17:56:31 -05:00
|
|
|
= help: only local labels of the form `<number>:` should be used in inline asm
|
2022-01-06 07:39:42 -06:00
|
|
|
= 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
|
2021-07-20 15:35:26 -05:00
|
|
|
|
2021-07-29 17:56:31 -05:00
|
|
|
error: avoid using named labels in inline assembly
|
2021-12-09 18:15:33 -06:00
|
|
|
--> $DIR/named-asm-labels.rs:49:15
|
2021-07-20 15:35:26 -05:00
|
|
|
|
|
|
|
|
LL | asm!("bar2: nop\n bar3: nop");
|
2021-08-04 16:28:30 -05:00
|
|
|
| ^^^^ ^^^^
|
2021-07-20 15:35:26 -05:00
|
|
|
|
|
2021-07-29 17:56:31 -05:00
|
|
|
= help: only local labels of the form `<number>:` should be used in inline asm
|
2022-01-06 07:39:42 -06:00
|
|
|
= 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
|
2021-07-20 15:35:26 -05:00
|
|
|
|
2021-07-29 17:56:31 -05:00
|
|
|
error: avoid using named labels in inline assembly
|
2021-12-09 18:15:33 -06:00
|
|
|
--> $DIR/named-asm-labels.rs:51:15
|
2021-07-20 15:35:26 -05:00
|
|
|
|
|
|
|
|
LL | asm!("bar4: nop\n nop");
|
|
|
|
| ^^^^
|
|
|
|
|
|
2021-07-29 17:56:31 -05:00
|
|
|
= help: only local labels of the form `<number>:` should be used in inline asm
|
2022-01-06 07:39:42 -06:00
|
|
|
= 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
|
2021-07-20 15:35:26 -05:00
|
|
|
|
2021-07-29 17:56:31 -05:00
|
|
|
error: avoid using named labels in inline assembly
|
2021-12-09 18:15:33 -06:00
|
|
|
--> $DIR/named-asm-labels.rs:52:21
|
2021-07-20 15:35:26 -05:00
|
|
|
|
|
|
|
|
LL | asm!("nop\n bar5: nop");
|
|
|
|
| ^^^^
|
|
|
|
|
|
2021-07-29 17:56:31 -05:00
|
|
|
= help: only local labels of the form `<number>:` should be used in inline asm
|
2022-01-06 07:39:42 -06:00
|
|
|
= 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
|
2021-07-20 15:35:26 -05:00
|
|
|
|
2021-07-29 17:56:31 -05:00
|
|
|
error: avoid using named labels in inline assembly
|
2021-12-09 18:15:33 -06:00
|
|
|
--> $DIR/named-asm-labels.rs:53:21
|
2021-07-20 15:35:26 -05:00
|
|
|
|
|
|
|
|
LL | asm!("nop\n bar6: bar7: nop");
|
2021-08-04 16:28:30 -05:00
|
|
|
| ^^^^ ^^^^
|
2021-07-20 15:35:26 -05:00
|
|
|
|
|
2021-07-29 17:56:31 -05:00
|
|
|
= help: only local labels of the form `<number>:` should be used in inline asm
|
2022-01-06 07:39:42 -06:00
|
|
|
= 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
|
2021-07-20 15:35:26 -05:00
|
|
|
|
2021-07-29 17:56:31 -05:00
|
|
|
error: avoid using named labels in inline assembly
|
2021-12-09 18:15:33 -06:00
|
|
|
--> $DIR/named-asm-labels.rs:59:13
|
2021-07-20 15:35:26 -05:00
|
|
|
|
|
|
|
|
LL | blah2: nop
|
|
|
|
| ^^^^^
|
|
|
|
LL | blah3: nop
|
|
|
|
| ^^^^^
|
|
|
|
|
|
2021-07-29 17:56:31 -05:00
|
|
|
= help: only local labels of the form `<number>:` should be used in inline asm
|
2022-01-06 07:39:42 -06:00
|
|
|
= 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
|
2021-07-20 15:35:26 -05:00
|
|
|
|
2021-07-29 17:56:31 -05:00
|
|
|
error: avoid using named labels in inline assembly
|
2021-12-09 18:15:33 -06:00
|
|
|
--> $DIR/named-asm-labels.rs:68:19
|
2021-07-20 15:35:26 -05:00
|
|
|
|
|
|
|
|
LL | nop ; blah4: nop
|
|
|
|
| ^^^^^
|
|
|
|
|
|
2021-07-29 17:56:31 -05:00
|
|
|
= help: only local labels of the form `<number>:` should be used in inline asm
|
2022-01-06 07:39:42 -06:00
|
|
|
= 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
|
2021-07-20 15:35:26 -05:00
|
|
|
|
2021-07-29 17:56:31 -05:00
|
|
|
error: avoid using named labels in inline assembly
|
2021-12-09 18:15:33 -06:00
|
|
|
--> $DIR/named-asm-labels.rs:82:15
|
2021-07-20 15:35:26 -05:00
|
|
|
|
|
|
|
|
LL | asm!("blah1: 2bar: nop");
|
|
|
|
| ^^^^^
|
|
|
|
|
|
2021-07-29 17:56:31 -05:00
|
|
|
= help: only local labels of the form `<number>:` should be used in inline asm
|
2022-01-06 07:39:42 -06:00
|
|
|
= 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
|
2021-07-20 15:35:26 -05:00
|
|
|
|
2021-07-29 17:56:31 -05:00
|
|
|
error: avoid using named labels in inline assembly
|
2021-12-09 18:15:33 -06:00
|
|
|
--> $DIR/named-asm-labels.rs:85:15
|
2021-07-20 15:35:26 -05:00
|
|
|
|
|
|
|
|
LL | asm!("def: def: nop");
|
|
|
|
| ^^^
|
|
|
|
|
|
2021-07-29 17:56:31 -05:00
|
|
|
= help: only local labels of the form `<number>:` should be used in inline asm
|
2022-01-06 07:39:42 -06:00
|
|
|
= 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
|
2021-07-20 15:35:26 -05:00
|
|
|
|
2021-07-29 17:56:31 -05:00
|
|
|
error: avoid using named labels in inline assembly
|
2021-12-09 18:15:33 -06:00
|
|
|
--> $DIR/named-asm-labels.rs:86:15
|
2021-07-20 15:35:26 -05:00
|
|
|
|
|
|
|
|
LL | asm!("def: nop\ndef: nop");
|
|
|
|
| ^^^
|
|
|
|
|
|
2021-07-29 17:56:31 -05:00
|
|
|
= help: only local labels of the form `<number>:` should be used in inline asm
|
2022-01-06 07:39:42 -06:00
|
|
|
= 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
|
2021-07-20 15:35:26 -05:00
|
|
|
|
2021-07-29 17:56:31 -05:00
|
|
|
error: avoid using named labels in inline assembly
|
2021-12-09 18:15:33 -06:00
|
|
|
--> $DIR/named-asm-labels.rs:87:15
|
2021-07-20 15:35:26 -05:00
|
|
|
|
|
|
|
|
LL | asm!("def: nop; def: nop");
|
|
|
|
| ^^^
|
|
|
|
|
|
2021-07-29 17:56:31 -05:00
|
|
|
= help: only local labels of the form `<number>:` should be used in inline asm
|
2022-01-06 07:39:42 -06:00
|
|
|
= 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
|
2021-07-20 15:35:26 -05:00
|
|
|
|
2021-07-29 17:56:31 -05:00
|
|
|
error: avoid using named labels in inline assembly
|
2021-12-09 18:15:33 -06:00
|
|
|
--> $DIR/named-asm-labels.rs:95:15
|
2021-07-20 15:35:26 -05:00
|
|
|
|
|
|
|
|
LL | asm!("fooo\u{003A} nop");
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2021-07-29 17:56:31 -05:00
|
|
|
= help: only local labels of the form `<number>:` should be used in inline asm
|
2022-01-06 07:39:42 -06:00
|
|
|
= 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
|
2021-07-20 15:35:26 -05:00
|
|
|
|
2021-07-29 17:56:31 -05:00
|
|
|
error: avoid using named labels in inline assembly
|
2021-12-09 18:15:33 -06:00
|
|
|
--> $DIR/named-asm-labels.rs:96:15
|
2021-07-20 15:35:26 -05:00
|
|
|
|
|
|
|
|
LL | asm!("foooo\x3A nop");
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
2021-07-29 17:56:31 -05:00
|
|
|
= help: only local labels of the form `<number>:` should be used in inline asm
|
2022-01-06 07:39:42 -06:00
|
|
|
= 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
|
2021-07-20 15:35:26 -05:00
|
|
|
|
2021-07-29 17:56:31 -05:00
|
|
|
error: avoid using named labels in inline assembly
|
2021-12-09 18:15:33 -06:00
|
|
|
--> $DIR/named-asm-labels.rs:99:15
|
2021-07-20 15:35:26 -05:00
|
|
|
|
|
|
|
|
LL | asm!("fooooo:\u{000A} nop");
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
2021-07-29 17:56:31 -05:00
|
|
|
= help: only local labels of the form `<number>:` should be used in inline asm
|
2022-01-06 07:39:42 -06:00
|
|
|
= 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
|
2021-07-20 15:35:26 -05:00
|
|
|
|
2021-07-29 17:56:31 -05:00
|
|
|
error: avoid using named labels in inline assembly
|
2021-12-09 18:15:33 -06:00
|
|
|
--> $DIR/named-asm-labels.rs:100:15
|
2021-07-20 15:35:26 -05:00
|
|
|
|
|
|
|
|
LL | asm!("foooooo:\x0A nop");
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
2021-07-29 17:56:31 -05:00
|
|
|
= help: only local labels of the form `<number>:` should be used in inline asm
|
2022-01-06 07:39:42 -06:00
|
|
|
= 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
|
2021-07-20 15:35:26 -05:00
|
|
|
|
2021-07-29 17:56:31 -05:00
|
|
|
error: avoid using named labels in inline assembly
|
2021-12-09 18:15:33 -06:00
|
|
|
--> $DIR/named-asm-labels.rs:104:14
|
2021-07-20 15:35:26 -05:00
|
|
|
|
|
|
|
|
LL | asm!("\x41\x42\x43\x3A\x20\x6E\x6F\x70");
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2021-07-29 17:56:31 -05:00
|
|
|
= help: only local labels of the form `<number>:` should be used in inline asm
|
2022-01-06 07:39:42 -06:00
|
|
|
= 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
|
2021-07-20 15:35:26 -05:00
|
|
|
|
2021-07-29 17:56:31 -05:00
|
|
|
error: avoid using named labels in inline assembly
|
2021-12-09 18:15:33 -06:00
|
|
|
--> $DIR/named-asm-labels.rs:112:13
|
2021-07-21 16:47:37 -05:00
|
|
|
|
|
|
|
|
LL | ab: nop // ab: does foo
|
|
|
|
| ^^
|
|
|
|
|
|
2021-07-29 17:56:31 -05:00
|
|
|
= help: only local labels of the form `<number>:` should be used in inline asm
|
2022-01-06 07:39:42 -06:00
|
|
|
= 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
|
2021-07-21 16:47:37 -05:00
|
|
|
|
2021-07-29 17:56:31 -05:00
|
|
|
error: avoid using named labels in inline assembly
|
2023-12-21 11:32:58 -06:00
|
|
|
--> $DIR/named-asm-labels.rs:132:19
|
|
|
|
|
|
|
|
|
LL | asm!("test_{}: nop", in(reg) 10);
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
|
= help: only local labels of the form `<number>:` should be used in inline asm
|
|
|
|
= 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
|
|
|
|
|
|
|
|
error: avoid using named labels in inline assembly
|
|
|
|
--> $DIR/named-asm-labels.rs:134:15
|
|
|
|
|
|
|
|
|
LL | asm!("test_{}: nop", const 10);
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
|
= help: only local labels of the form `<number>:` should be used in inline asm
|
|
|
|
= 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
|
|
|
|
|
|
|
|
error: avoid using named labels in inline assembly
|
|
|
|
--> $DIR/named-asm-labels.rs:135:15
|
|
|
|
|
|
|
|
|
LL | asm!("test_{}: nop", sym main);
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
|
= help: only local labels of the form `<number>:` should be used in inline asm
|
|
|
|
= 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
|
|
|
|
|
|
|
|
error: avoid using named labels in inline assembly
|
|
|
|
--> $DIR/named-asm-labels.rs:136:15
|
|
|
|
|
|
|
|
|
LL | asm!("{}_test: nop", const 10);
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
|
= help: only local labels of the form `<number>:` should be used in inline asm
|
|
|
|
= 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
|
|
|
|
|
|
|
|
error: avoid using named labels in inline assembly
|
|
|
|
--> $DIR/named-asm-labels.rs:137:15
|
|
|
|
|
|
|
|
|
LL | asm!("test_{}_test: nop", const 10);
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: only local labels of the form `<number>:` should be used in inline asm
|
|
|
|
= 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
|
|
|
|
|
|
|
|
error: avoid using named labels in inline assembly
|
|
|
|
--> $DIR/named-asm-labels.rs:138:15
|
|
|
|
|
|
|
|
|
LL | asm!("{}: nop", const 10);
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
|
= help: only local labels of the form `<number>:` should be used in inline asm
|
|
|
|
= 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
|
|
|
|
|
|
|
|
error: avoid using named labels in inline assembly
|
|
|
|
--> $DIR/named-asm-labels.rs:140:15
|
|
|
|
|
|
|
|
|
LL | asm!("{uwu}: nop", uwu = const 10);
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
|
= help: only local labels of the form `<number>:` should be used in inline asm
|
|
|
|
= 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
|
|
|
|
|
|
|
|
error: avoid using named labels in inline assembly
|
|
|
|
--> $DIR/named-asm-labels.rs:141:15
|
|
|
|
|
|
|
|
|
LL | asm!("{0}: nop", const 10);
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
|
= help: only local labels of the form `<number>:` should be used in inline asm
|
|
|
|
= 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
|
|
|
|
|
|
|
|
error: avoid using named labels in inline assembly
|
|
|
|
--> $DIR/named-asm-labels.rs:142:15
|
|
|
|
|
|
|
|
|
LL | asm!("{1}: nop", "/* {0} */", const 10, const 20);
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
|
= help: only local labels of the form `<number>:` should be used in inline asm
|
|
|
|
= 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
|
|
|
|
|
|
|
|
error: avoid using named labels in inline assembly
|
|
|
|
--> $DIR/named-asm-labels.rs:145:14
|
2021-07-22 18:26:16 -05:00
|
|
|
|
|
|
|
|
LL | asm!(include_str!("named-asm-labels.s"));
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2021-07-29 17:56:31 -05:00
|
|
|
= help: only local labels of the form `<number>:` should be used in inline asm
|
2022-01-06 07:39:42 -06:00
|
|
|
= 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
|
2021-07-22 18:26:16 -05:00
|
|
|
|
2021-07-29 17:56:31 -05:00
|
|
|
warning: avoid using named labels in inline assembly
|
2023-12-21 11:32:58 -06:00
|
|
|
--> $DIR/named-asm-labels.rs:155:19
|
2021-07-22 18:26:16 -05:00
|
|
|
|
|
|
|
|
LL | asm!("warned: nop");
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
2022-09-18 10:55:36 -05:00
|
|
|
= help: only local labels of the form `<number>:` should be used in inline asm
|
|
|
|
= 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
|
2021-07-22 18:26:16 -05:00
|
|
|
note: the lint level is defined here
|
2023-12-21 11:32:58 -06:00
|
|
|
--> $DIR/named-asm-labels.rs:153:16
|
2021-07-22 18:26:16 -05:00
|
|
|
|
|
|
|
|
LL | #[warn(named_asm_labels)]
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
2021-08-19 15:34:01 -05:00
|
|
|
error: avoid using named labels in inline assembly
|
2023-12-21 11:32:58 -06:00
|
|
|
--> $DIR/named-asm-labels.rs:164:20
|
2021-08-19 15:34:01 -05:00
|
|
|
|
|
|
|
|
LL | unsafe { asm!(".Lfoo: mov rax, {}; ret;", "nop", const 1, options(noreturn)) }
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
|
= help: only local labels of the form `<number>:` should be used in inline asm
|
2022-01-06 07:39:42 -06:00
|
|
|
= 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
|
2021-08-19 15:34:01 -05:00
|
|
|
|
|
|
|
error: avoid using named labels in inline assembly
|
2023-12-21 11:32:58 -06:00
|
|
|
--> $DIR/named-asm-labels.rs:170:20
|
2021-08-19 15:34:01 -05:00
|
|
|
|
|
|
|
|
LL | unsafe { asm!(".Lbar: mov rax, {}; ret;", "nop", const 1, options(noreturn)) }
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
|
= help: only local labels of the form `<number>:` should be used in inline asm
|
2022-01-06 07:39:42 -06:00
|
|
|
= 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
|
2021-08-19 15:34:01 -05:00
|
|
|
|
|
|
|
error: avoid using named labels in inline assembly
|
2023-12-21 11:32:58 -06:00
|
|
|
--> $DIR/named-asm-labels.rs:178:20
|
2021-08-19 15:34:01 -05:00
|
|
|
|
|
|
|
|
LL | unsafe { asm!(".Laaa: nop; ret;", options(noreturn)) }
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
|
= help: only local labels of the form `<number>:` should be used in inline asm
|
2022-01-06 07:39:42 -06:00
|
|
|
= 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
|
2021-08-19 15:34:01 -05:00
|
|
|
|
|
|
|
error: avoid using named labels in inline assembly
|
2023-12-21 11:32:58 -06:00
|
|
|
--> $DIR/named-asm-labels.rs:188:24
|
2021-08-19 15:34:01 -05:00
|
|
|
|
|
|
|
|
LL | unsafe { asm!(".Lbbb: nop; ret;", options(noreturn)) }
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
|
= help: only local labels of the form `<number>:` should be used in inline asm
|
2022-01-06 07:39:42 -06:00
|
|
|
= 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
|
2021-08-19 15:34:01 -05:00
|
|
|
|
|
|
|
error: avoid using named labels in inline assembly
|
2023-12-21 11:32:58 -06:00
|
|
|
--> $DIR/named-asm-labels.rs:197:15
|
2021-08-19 15:34:01 -05:00
|
|
|
|
|
|
|
|
LL | asm!("closure1: nop");
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: only local labels of the form `<number>:` should be used in inline asm
|
2022-01-06 07:39:42 -06:00
|
|
|
= 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
|
2021-08-19 15:34:01 -05:00
|
|
|
|
|
|
|
error: avoid using named labels in inline assembly
|
2023-12-21 11:32:58 -06:00
|
|
|
--> $DIR/named-asm-labels.rs:201:15
|
2021-08-19 15:34:01 -05:00
|
|
|
|
|
|
|
|
LL | asm!("closure2: nop");
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: only local labels of the form `<number>:` should be used in inline asm
|
2022-01-06 07:39:42 -06:00
|
|
|
= 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
|
2021-08-19 15:34:01 -05:00
|
|
|
|
|
|
|
error: avoid using named labels in inline assembly
|
2023-12-21 11:32:58 -06:00
|
|
|
--> $DIR/named-asm-labels.rs:211:19
|
2021-08-19 15:34:01 -05:00
|
|
|
|
|
|
|
|
LL | asm!("closure3: nop");
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: only local labels of the form `<number>:` should be used in inline asm
|
2022-01-06 07:39:42 -06:00
|
|
|
= 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
|
2021-08-19 15:34:01 -05:00
|
|
|
|
2023-12-21 11:32:58 -06:00
|
|
|
error: aborting due to 44 previous errors; 1 warning emitted
|
2021-07-20 15:35:26 -05:00
|
|
|
|