File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed
Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 11#[ cfg( test) ]
22mod tests;
33
4- use crate :: alloc:: { Allocator , self } ;
4+ use crate :: alloc:: { self , Allocator } ;
55use crate :: cmp;
66use crate :: collections:: VecDeque ;
77use crate :: fmt;
Original file line number Diff line number Diff line change 66// The this solution works like the implementation of macOS and
77// doesn't additional OS support
88
9- use core:: alloc:: PlVec ;
109use crate :: mem;
10+ use core:: alloc:: PlVec ;
1111
1212#[ thread_local]
1313static mut DTORS : PlVec < ( * mut u8 , unsafe extern "C" fn ( * mut u8 ) ) > = PlVec :: new ( ) ;
Original file line number Diff line number Diff line change 11#![ cfg( target_thread_local) ]
2- #![ unstable( feature = "thread_local_internals" , issue = "none" ) ] #![ feature( global_co_alloc_plvec) ]
2+ #![ unstable( feature = "thread_local_internals" , issue = "none" ) ]
3+ #![ feature( global_co_alloc_plvec) ]
34#![ feature( global_co_alloc_plvec) ]
45
56// Simplify dtor registration by using a list of destructors.
You can’t perform that action at this time.
0 commit comments