X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Flibpanic_unwind%2Flib.rs;h=f361354da2ac2ff59081a778e10b4fcfb67edec6;hb=c50d9816c7b8fee1a7fa2fb7c6c47fc9b9ddd83f;hp=f791fe82a27e7dcf7182111f50f0eda14ee53a8f;hpb=41c845efd9c241be1bc506a433b25f5357e5beb5;p=rust.git diff --git a/src/libpanic_unwind/lib.rs b/src/libpanic_unwind/lib.rs index f791fe82a27..f361354da2a 100644 --- a/src/libpanic_unwind/lib.rs +++ b/src/libpanic_unwind/lib.rs @@ -81,6 +81,7 @@ mod dwarf; #[rustc_std_internal_symbol] +#[cfg_attr(not(bootstrap), allow(improper_ctypes_definitions))] pub unsafe extern "C" fn __rust_panic_cleanup(payload: *mut u8) -> *mut (dyn Any + Send + 'static) { Box::into_raw(imp::cleanup(payload)) }