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 1
1
#[ cfg( test) ]
2
2
mod tests;
3
3
4
- use crate :: alloc:: { Allocator , self } ;
4
+ use crate :: alloc:: { self , Allocator } ;
5
5
use crate :: cmp;
6
6
use crate :: collections:: VecDeque ;
7
7
use crate :: fmt;
Original file line number Diff line number Diff line change 6
6
// The this solution works like the implementation of macOS and
7
7
// doesn't additional OS support
8
8
9
- use core:: alloc:: PlVec ;
10
9
use crate :: mem;
10
+ use core:: alloc:: PlVec ;
11
11
12
12
#[ thread_local]
13
13
static mut DTORS : PlVec < ( * mut u8 , unsafe extern "C" fn ( * mut u8 ) ) > = PlVec :: new ( ) ;
Original file line number Diff line number Diff line change 1
1
#![ 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) ]
3
4
#![ feature( global_co_alloc_plvec) ]
4
5
5
6
// Simplify dtor registration by using a list of destructors.
You can’t perform that action at this time.
0 commit comments