From d837cce3d36ac99d899b5743aa7371bb887a39a4 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Fri, 29 May 2020 13:43:21 -0700 Subject: [PATCH] Add back in unsafe for bootstrapping And add an `#[allow]` for now to appease stage0 --- src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 5649886..db05af5 100644 --- a/src/lib.rs +++ b/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]