Deprecate the asm! macro
This commit is contained in:
parent
c4ca63885e
commit
ce83b49d16
8 changed files with 32 additions and 7 deletions
|
|
@ -3,6 +3,7 @@
|
|||
fn main() {
|
||||
unsafe {
|
||||
asm!(""); //~ ERROR inline assembly is not stable enough
|
||||
//~^ WARN use of deprecated item 'asm'
|
||||
llvm_asm!(""); //~ ERROR inline assembly is not stable enough
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ LL | asm!("");
|
|||
= help: add `#![feature(asm)]` to the crate attributes to enable
|
||||
|
||||
error[E0658]: use of unstable library feature 'llvm_asm': inline assembly is not stable enough for use and is subject to change
|
||||
--> $DIR/feature-gate-asm.rs:6:9
|
||||
--> $DIR/feature-gate-asm.rs:7:9
|
||||
|
|
||||
LL | llvm_asm!("");
|
||||
| ^^^^^^^^
|
||||
|
|
@ -16,6 +16,14 @@ LL | llvm_asm!("");
|
|||
= note: see issue #70173 <https://github.com/rust-lang/rust/issues/70173> for more information
|
||||
= help: add `#![feature(llvm_asm)]` to the crate attributes to enable
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
warning: use of deprecated item 'asm': the syntax of asm! will change soon, use llvm_asm! to avoid breakage
|
||||
--> $DIR/feature-gate-asm.rs:5:9
|
||||
|
|
||||
LL | asm!("");
|
||||
| ^^^ help: replace the use of the deprecated item: `llvm_asm`
|
||||
|
|
||||
= note: `#[warn(deprecated)]` on by default
|
||||
|
||||
error: aborting due to 2 previous errors; 1 warning emitted
|
||||
|
||||
For more information about this error, try `rustc --explain E0658`.
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@
|
|||
fn main() {
|
||||
unsafe {
|
||||
println!("{:?}", asm!("")); //~ ERROR inline assembly is not stable
|
||||
//~^ WARN use of deprecated item 'asm'
|
||||
println!("{:?}", llvm_asm!("")); //~ ERROR inline assembly is not stable
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ LL | println!("{:?}", asm!(""));
|
|||
= help: add `#![feature(asm)]` to the crate attributes to enable
|
||||
|
||||
error[E0658]: use of unstable library feature 'llvm_asm': inline assembly is not stable enough for use and is subject to change
|
||||
--> $DIR/feature-gate-asm2.rs:6:26
|
||||
--> $DIR/feature-gate-asm2.rs:7:26
|
||||
|
|
||||
LL | println!("{:?}", llvm_asm!(""));
|
||||
| ^^^^^^^^
|
||||
|
|
@ -16,6 +16,14 @@ LL | println!("{:?}", llvm_asm!(""));
|
|||
= note: see issue #70173 <https://github.com/rust-lang/rust/issues/70173> for more information
|
||||
= help: add `#![feature(llvm_asm)]` to the crate attributes to enable
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
warning: use of deprecated item 'asm': the syntax of asm! will change soon, use llvm_asm! to avoid breakage
|
||||
--> $DIR/feature-gate-asm2.rs:5:26
|
||||
|
|
||||
LL | println!("{:?}", asm!(""));
|
||||
| ^^^ help: replace the use of the deprecated item: `llvm_asm`
|
||||
|
|
||||
= note: `#[warn(deprecated)]` on by default
|
||||
|
||||
error: aborting due to 2 previous errors; 1 warning emitted
|
||||
|
||||
For more information about this error, try `rustc --explain E0658`.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue