File tree 4 files changed +3
-5
lines changed
4 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -9,8 +9,6 @@ pub mod cmath;
9
9
pub mod os_str;
10
10
pub mod path;
11
11
pub mod sync;
12
- #[ allow( dead_code) ]
13
- #[ allow( unused_imports) ]
14
12
pub mod thread_local;
15
13
16
14
// FIXME(117276): remove this, move feature implementations into individual
Original file line number Diff line number Diff line change 1
1
use crate :: cell:: UnsafeCell ;
2
2
use crate :: hint:: unreachable_unchecked;
3
- use crate :: mem:: forget;
4
3
use crate :: ptr;
5
4
use crate :: sys:: thread_local:: abort_on_dtor_unwind;
6
5
use crate :: sys:: thread_local_dtor:: register_dtor;
Original file line number Diff line number Diff line change @@ -28,7 +28,8 @@ cfg_if::cfg_if! {
28
28
/// fn` declared in a user crate). If the callback unwinds anyway, then
29
29
/// `rtabort` with a message about thread local panicking on drop.
30
30
#[ inline]
31
- pub fn abort_on_dtor_unwind ( f : impl FnOnce ( ) ) {
31
+ #[ allow( dead_code) ]
32
+ fn abort_on_dtor_unwind ( f : impl FnOnce ( ) ) {
32
33
// Using a guard like this is lower cost.
33
34
let guard = DtorUnwindGuard ;
34
35
f ( ) ;
Original file line number Diff line number Diff line change 1
1
use super :: abort_on_dtor_unwind;
2
2
use crate :: cell:: Cell ;
3
3
use crate :: marker:: PhantomData ;
4
+ use crate :: ptr;
4
5
use crate :: sys_common:: thread_local_key:: StaticKey as OsKey ;
5
- use crate :: { panic, ptr} ;
6
6
7
7
#[ doc( hidden) ]
8
8
#[ allow_internal_unstable( thread_local_internals) ]
You can’t perform that action at this time.
0 commit comments