diff --git a/ctor/src/lib.rs b/ctor/src/lib.rs index 1c92a8c..1540040 100644 --- a/ctor/src/lib.rs +++ b/ctor/src/lib.rs @@ -356,7 +356,7 @@ pub fn dtor(_attribute: TokenStream, function: TokenStream) -> TokenStream { static __dso_handle: *const u8; fn __cxa_atexit(cb: unsafe extern fn(_: *const u8), arg: *const u8, dso_handle: *const u8); } - __cxa_atexit(cb, std::ptr::null(), __dso_handle); + __cxa_atexit(cb, core::ptr::null(), __dso_handle); } #[used]