Explorar o código

Add back in unsafe for bootstrapping

And add an `#[allow]` for now to appease stage0
Alex Crichton %!s(int64=4) %!d(string=hai) anos
pai
achega
d837cce3d3
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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]