浏览代码

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.
Dan Gohman 3 年之前
父节点
当前提交
35ad635000
共有 4 个文件被更改,包括 4 次插入0 次删除
  1. 1 0
      src/unwinder/arch/aarch64.rs
  2. 1 0
      src/unwinder/arch/riscv64.rs
  3. 1 0
      src/unwinder/arch/x86.rs
  4. 1 0
      src/unwinder/arch/x86_64.rs

+ 1 - 0
src/unwinder/arch/aarch64.rs

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

+ 1 - 0
src/unwinder/arch/riscv64.rs

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

+ 1 - 0
src/unwinder/arch/x86.rs

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

+ 1 - 0
src/unwinder/arch/x86_64.rs

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