Эх сурвалжийг харах

Add back in unsafe for bootstrapping

And add an `#[allow]` for now to appease stage0
Alex Crichton 4 жил өмнө
parent
commit
d837cce3d3
1 өөрчлөгдсөн 2 нэмэгдсэн , 1 устгасан
  1. 2 1
      src/lib.rs

+ 2 - 1
src/lib.rs

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