Fix compilation on asm! for Rust nightly.

Add `use core::arch::asm;` in source files that use `asm!`, to fix
compilation on the latest Rust nightly.
This commit is contained in:
Dan Gohman 2021-12-16 09:49:59 -08:00
parent 52086c73f8
commit 35ad635000
4 changed files with 4 additions and 0 deletions

View File

@ -1,3 +1,4 @@
use core::arch::asm;
use core::fmt;
use core::ops;
use gimli::{AArch64, Register};

View File

@ -1,3 +1,4 @@
use core::arch::asm;
use core::fmt;
use core::ops;
use gimli::{Register, RiscV};

View File

@ -1,3 +1,4 @@
use core::arch::asm;
use core::fmt;
use core::ops;
use gimli::{Register, X86};

View File

@ -1,3 +1,4 @@
use core::arch::asm;
use core::fmt;
use core::ops;
use gimli::{Register, X86_64};