Skip to content

Commit ac1fb93

Browse files
committed
Fix feature gate tests
1 parent 6ba9696 commit ac1fb93

File tree

4 files changed

+14
-10
lines changed

4 files changed

+14
-10
lines changed

src/test/ui/feature-gates/feature-gate-asm.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
fn 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
}

src/test/ui/feature-gates/feature-gate-asm.stderr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ error[E0658]: use of unstable library feature 'asm': inline assembly is not stab
44
LL | 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
|
1313
LL | llvm_asm!("");
1414
| ^^^^^^^^

src/test/ui/feature-gates/feature-gate-asm2.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
fn 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
}

src/test/ui/feature-gates/feature-gate-asm2.stderr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ error[E0658]: use of unstable library feature 'asm': inline assembly is not stab
44
LL | 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
|
1313
LL | println!("{:?}", llvm_asm!(""));
1414
| ^^^^^^^^

0 commit comments

Comments
 (0)