We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60a5074 commit c81b741Copy full SHA for c81b741
library/std/src/sys/unix/thread_local_dtor.rs
@@ -70,7 +70,7 @@ pub unsafe fn register_dtor(t: *mut u8, dtor: unsafe extern "C" fn(*mut u8)) {
70
#[thread_local]
71
static DTORS: Cell<*mut List> = Cell::new(ptr::null_mut());
72
if DTORS.get().is_null() {
73
- let v: Box<List> = box Vec::new();
+ let v: Box<List> = Box::new(Vec::new());
74
DTORS.set(Box::into_raw(v));
75
}
76
0 commit comments