looks like the asm macro is stable :D
This commit is contained in:
parent
d8f7b831e7
commit
4da38299fa
1 changed files with 1 additions and 3 deletions
|
|
@ -1,5 +1,3 @@
|
|||
#![feature(asm)]
|
||||
|
||||
use std::env;
|
||||
|
||||
#[cfg(miri)]
|
||||
|
|
@ -9,7 +7,7 @@ fn not_in_miri() -> i32 {
|
|||
// Inline assembly definitely does not work in Miri.
|
||||
let mut dummy = 42;
|
||||
unsafe {
|
||||
asm!("/* {} */", in(reg) &mut dummy);
|
||||
std::arch::asm!("/* {} */", in(reg) &mut dummy);
|
||||
}
|
||||
return dummy;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue