-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expand feature gate testing for asm_const/asm_sym
- Loading branch information
Showing
4 changed files
with
40 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,21 @@ | ||
error[E0658]: const operands for inline assembly are unstable | ||
--> $DIR/feature-gate-asm_const.rs:7:29 | ||
--> $DIR/feature-gate-asm_const.rs:6:25 | ||
| | ||
LL | asm!("mov eax, {}", const N + 1); | ||
| ^^^^^^^^^^^ | ||
| | ||
= note: see issue #93332 <https://github.com/rust-lang/rust/issues/93332> for more information | ||
= help: add `#![feature(asm_const)]` to the crate attributes to enable | ||
|
||
error[E0658]: const operands for inline assembly are unstable | ||
--> $DIR/feature-gate-asm_const.rs:13:29 | ||
| | ||
LL | asm!("mov eax, {}", const 123); | ||
| ^^^^^^^^^ | ||
| | ||
= note: see issue #93332 <https://github.com/rust-lang/rust/issues/93332> for more information | ||
= help: add `#![feature(asm_const)]` to the crate attributes to enable | ||
|
||
error: aborting due to previous error | ||
error: aborting due to 2 previous errors | ||
|
||
For more information about this error, try `rustc --explain E0658`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,21 @@ | ||
error[E0658]: sym operands for inline assembly are unstable | ||
--> $DIR/feature-gate-asm_sym.rs:7:29 | ||
--> $DIR/feature-gate-asm_sym.rs:9:29 | ||
| | ||
LL | asm!("mov eax, {}", sym main); | ||
| ^^^^^^^^ | ||
LL | asm!("mov eax, {}", sym bar::<N>); | ||
| ^^^^^^^^^^^^ | ||
| | ||
= note: see issue #93333 <https://github.com/rust-lang/rust/issues/93333> for more information | ||
= help: add `#![feature(asm_sym)]` to the crate attributes to enable | ||
|
||
error: aborting due to previous error | ||
error[E0658]: sym operands for inline assembly are unstable | ||
--> $DIR/feature-gate-asm_sym.rs:16:29 | ||
| | ||
LL | asm!("mov eax, {}", sym foo::<0>); | ||
| ^^^^^^^^^^^^ | ||
| | ||
= note: see issue #93333 <https://github.com/rust-lang/rust/issues/93333> for more information | ||
= help: add `#![feature(asm_sym)]` to the crate attributes to enable | ||
|
||
error: aborting due to 2 previous errors | ||
|
||
For more information about this error, try `rustc --explain E0658`. |