From fc9cd685f881b6a4055fddc9da3a28779bad6e10 Mon Sep 17 00:00:00 2001 From: Oscar Liu <25657114+oscarliu2020@users.noreply.github.com> Date: Sat, 14 Sep 2024 05:00:59 +0800 Subject: [PATCH] replace std::ptr in dtor with core::ptr (#305) --- ctor/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]