File tree Expand file tree Collapse file tree 7 files changed +10
-6
lines changed
macros/macro-expanded-include Expand file tree Collapse file tree 7 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 11// Checks that naked functions are never inlined.
22// compile-flags: -O -Zmir-opt-level=3
3+ // needs-asm-support
34// ignore-wasm32
45#![ crate_type = "lib" ]
56#![ feature( asm) ]
Original file line number Diff line number Diff line change 1+ // needs-asm-support
2+
13global_asm ! ( "" ) ; //~ ERROR `global_asm!` is not stable
24
35fn main ( ) { }
Original file line number Diff line number Diff line change 11error[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
33 |
44LL | global_asm!("");
55 | ^^^^^^^^^^
Original file line number Diff line number Diff line change 1- // ignore-emscripten no llvm_asm! support
1+ // needs-asm- support
22// build-pass (FIXME(62277): could be check-pass?)
33#![ feature( asm) ]
44#![ allow( unused) ]
Original file line number Diff line number Diff line change 11error[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
33 |
44LL | asm!("nop");
55 | ^^^^^^^^^^^^ use of inline assembly
66 |
77 = note: inline assembly is entirely unchecked and can cause undefined behavior
88
99error[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
1111 |
1212LL | llvm_asm!("nop");
1313 | ^^^^^^^^^^^^^^^^^ use of inline assembly
Original file line number Diff line number Diff line change 11// revisions: mir thir
22// [thir]compile-flags: -Z thir-unsafeck
3+ // needs-asm-support
34
45#![ feature( llvm_asm) ]
56#![ feature( asm) ]
Original file line number Diff line number Diff line change 11error[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
33 |
44LL | asm!("nop");
55 | ^^^^^^^^^^^^ use of inline assembly
66 |
77 = note: inline assembly is entirely unchecked and can cause undefined behavior
88
99error[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
1111 |
1212LL | llvm_asm!("nop");
1313 | ^^^^^^^^^^^^^^^^^ use of inline assembly
You can’t perform that action at this time.
0 commit comments