Stabilize asm! and global_asm!
They are also removed from the prelude as per the decision in https://github.com/rust-lang/rust/issues/87228. stdarch and compiler-builtins are updated to work with the new, stable asm! and global_asm! macros.
This commit is contained in:
parent
b3a55371a7
commit
44a3a66ee8
123 changed files with 540 additions and 1636 deletions
|
@ -126,12 +126,6 @@ LL | Foo,
|
|||
|
|
||||
= help: consider a manual implementation of `Default`
|
||||
|
||||
error: asm template must be a string literal
|
||||
--> $DIR/macros-nonfatal-errors.rs:99:10
|
||||
|
|
||||
LL | asm!(invalid);
|
||||
| ^^^^^^^
|
||||
|
||||
error: inline assembly must be a string literal
|
||||
--> $DIR/macros-nonfatal-errors.rs:100:15
|
||||
|
|
||||
|
@ -221,5 +215,14 @@ error: trace_macros! accepts only `true` or `false`
|
|||
LL | trace_macros!(invalid);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: cannot find macro `asm` in this scope
|
||||
--> $DIR/macros-nonfatal-errors.rs:99:5
|
||||
|
|
||||
LL | asm!(invalid);
|
||||
| ^^^
|
||||
|
|
||||
= note: consider importing this macro:
|
||||
std::arch::asm
|
||||
|
||||
error: aborting due to 27 previous errors
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue