Skip to content

Commit

Permalink
replace std::ptr in dtor with core::ptr (#305)
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarliu2020 authored Sep 13, 2024
1 parent 0bf7c15 commit fc9cd68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ctor/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit fc9cd68

Please sign in to comment.