Add back in unsafe for bootstrapping

And add an `#[allow]` for now to appease stage0
master
Alex Crichton 2020-05-29 13:43:21 -07:00
parent d3efbd2915
commit d837cce3d3
1 changed files with 2 additions and 1 deletions

View File

@ -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]