mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 15:54:15 +00:00
Fix core::hint::black_box support
This commit is contained in:
parent
d032c24476
commit
21edec4ea5
@ -689,6 +689,9 @@ fn trans_stmt<'tcx>(
|
|||||||
asm_str_style: _,
|
asm_str_style: _,
|
||||||
} = asm;
|
} = asm;
|
||||||
match &*asm_code.as_str() {
|
match &*asm_code.as_str() {
|
||||||
|
"" => {
|
||||||
|
// Black box
|
||||||
|
}
|
||||||
cpuid if cpuid.contains("cpuid") => {
|
cpuid if cpuid.contains("cpuid") => {
|
||||||
crate::trap::trap_unimplemented(
|
crate::trap::trap_unimplemented(
|
||||||
fx,
|
fx,
|
||||||
|
Loading…
Reference in New Issue
Block a user