Parcourir la source

Add back in unsafe for bootstrapping

And add an `#[allow]` for now to appease stage0
Alex Crichton il y a 4 ans
Parent
commit
d837cce3d3
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  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]