File tree 7 files changed +10
-6
lines changed
macros/macro-expanded-include
7 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 1
1
// Checks that naked functions are never inlined.
2
2
// compile-flags: -O -Zmir-opt-level=3
3
+ // needs-asm-support
3
4
// ignore-wasm32
4
5
#![ crate_type = "lib" ]
5
6
#![ feature( asm) ]
Original file line number Diff line number Diff line change
1
+ // needs-asm-support
2
+
1
3
global_asm ! ( "" ) ; //~ ERROR `global_asm!` is not stable
2
4
3
5
fn main ( ) { }
Original file line number Diff line number Diff line change 1
1
error[E0658]: use of unstable library feature 'global_asm': `global_asm!` is not stable enough for use and is subject to change
2
- --> $DIR/feature-gate-global_asm.rs:1 :1
2
+ --> $DIR/feature-gate-global_asm.rs:3 :1
3
3
|
4
4
LL | global_asm!("");
5
5
| ^^^^^^^^^^
Original file line number Diff line number Diff line change 1
- // ignore-emscripten no llvm_asm! support
1
+ // needs-asm- support
2
2
// build-pass (FIXME(62277): could be check-pass?)
3
3
#![ feature( asm) ]
4
4
#![ allow( unused) ]
Original file line number Diff line number Diff line change 1
1
error[E0133]: use of inline assembly is unsafe and requires unsafe function or block
2
- --> $DIR/inline_asm.rs:9 :5
2
+ --> $DIR/inline_asm.rs:10 :5
3
3
|
4
4
LL | asm!("nop");
5
5
| ^^^^^^^^^^^^ use of inline assembly
6
6
|
7
7
= note: inline assembly is entirely unchecked and can cause undefined behavior
8
8
9
9
error[E0133]: use of inline assembly is unsafe and requires unsafe function or block
10
- --> $DIR/inline_asm.rs:10 :5
10
+ --> $DIR/inline_asm.rs:11 :5
11
11
|
12
12
LL | llvm_asm!("nop");
13
13
| ^^^^^^^^^^^^^^^^^ use of inline assembly
Original file line number Diff line number Diff line change 1
1
// revisions: mir thir
2
2
// [thir]compile-flags: -Z thir-unsafeck
3
+ // needs-asm-support
3
4
4
5
#![ feature( llvm_asm) ]
5
6
#![ feature( asm) ]
Original file line number Diff line number Diff line change 1
1
error[E0133]: use of inline assembly is unsafe and requires unsafe function or block
2
- --> $DIR/inline_asm.rs:9 :5
2
+ --> $DIR/inline_asm.rs:10 :5
3
3
|
4
4
LL | asm!("nop");
5
5
| ^^^^^^^^^^^^ use of inline assembly
6
6
|
7
7
= note: inline assembly is entirely unchecked and can cause undefined behavior
8
8
9
9
error[E0133]: use of inline assembly is unsafe and requires unsafe function or block
10
- --> $DIR/inline_asm.rs:10 :5
10
+ --> $DIR/inline_asm.rs:11 :5
11
11
|
12
12
LL | llvm_asm!("nop");
13
13
| ^^^^^^^^^^^^^^^^^ use of inline assembly
You can’t perform that action at this time.
0 commit comments