浏览代码

Add back in unsafe for bootstrapping

And add an `#[allow]` for now to appease stage0
Alex Crichton 4 年之前
父节点
当前提交
d837cce3d3
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/lib.rs

+ 2 - 1
src/lib.rs

@@ -30,8 +30,9 @@
 #[cfg(test)]
 extern crate core;
 
+#[allow(unused_unsafe)]
 fn abort() -> ! {
-    core::intrinsics::abort()
+    unsafe { core::intrinsics::abort() }
 }
 
 #[macro_use]