File tree Expand file tree Collapse file tree 4 files changed +14
-10
lines changed
src/test/ui/feature-gates Expand file tree Collapse file tree 4 files changed +14
-10
lines changed Original file line number Diff line number Diff line change 22
33fn main ( ) {
44 unsafe {
5- asm ! ( "" ) ; //~ ERROR inline assembly is not stable enough
6- llvm_asm ! ( "" ) ; //~ ERROR inline assembly is not stable enough
5+ asm ! ( "" ) ;
6+ //~^ ERROR inline assembly is not stable enough
7+ llvm_asm ! ( "" ) ;
8+ //~^ ERROR LLVM-style inline assembly will never be stabilized
79 }
810}
Original file line number Diff line number Diff line change @@ -4,11 +4,11 @@ error[E0658]: use of unstable library feature 'asm': inline assembly is not stab
44LL | asm!("");
55 | ^^^
66 |
7- = note: see issue #70173 <https://github.com/rust-lang/rust/issues/70173 > for more information
7+ = note: see issue #72016 <https://github.com/rust-lang/rust/issues/72016 > for more information
88 = help: add `#![feature(asm)]` to the crate attributes to enable
99
10- error[E0658]: use of unstable library feature 'llvm_asm': inline assembly is not stable enough for use and is subject to change
11- --> $DIR/feature-gate-asm.rs:6 :9
10+ error[E0658]: use of unstable library feature 'llvm_asm': LLVM-style inline assembly will never be stabilized, prefer using asm! instead
11+ --> $DIR/feature-gate-asm.rs:7 :9
1212 |
1313LL | llvm_asm!("");
1414 | ^^^^^^^^
Original file line number Diff line number Diff line change 22
33fn main ( ) {
44 unsafe {
5- println ! ( "{:?}" , asm!( "" ) ) ; //~ ERROR inline assembly is not stable
6- println ! ( "{:?}" , llvm_asm!( "" ) ) ; //~ ERROR inline assembly is not stable
5+ println ! ( "{:?}" , asm!( "" ) ) ;
6+ //~^ ERROR inline assembly is not stable enough
7+ println ! ( "{:?}" , llvm_asm!( "" ) ) ;
8+ //~^ ERROR LLVM-style inline assembly will never be stabilized
79 }
810}
Original file line number Diff line number Diff line change @@ -4,11 +4,11 @@ error[E0658]: use of unstable library feature 'asm': inline assembly is not stab
44LL | println!("{:?}", asm!(""));
55 | ^^^
66 |
7- = note: see issue #70173 <https://github.com/rust-lang/rust/issues/70173 > for more information
7+ = note: see issue #72016 <https://github.com/rust-lang/rust/issues/72016 > for more information
88 = help: add `#![feature(asm)]` to the crate attributes to enable
99
10- error[E0658]: use of unstable library feature 'llvm_asm': inline assembly is not stable enough for use and is subject to change
11- --> $DIR/feature-gate-asm2.rs:6 :26
10+ error[E0658]: use of unstable library feature 'llvm_asm': LLVM-style inline assembly will never be stabilized, prefer using asm! instead
11+ --> $DIR/feature-gate-asm2.rs:7 :26
1212 |
1313LL | println!("{:?}", llvm_asm!(""));
1414 | ^^^^^^^^
You can’t perform that action at this time.
0 commit comments