File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 6767//! vanishes and only reappears when its [`Waker`][`core::task::Waker`] wakes the task, thus
6868//! scheduling it to be run again.
6969
70- #![ cfg_attr ( not ( feature = "std" ) , no_std) ]
70+ #![ no_std]
7171#![ warn( missing_docs, missing_debug_implementations, rust_2018_idioms) ]
7272#![ doc( test( attr( deny( rust_2018_idioms, warnings) ) ) ) ]
7373#![ doc( test( attr( allow( unused_extern_crates, unused_variables) ) ) ) ]
7979) ]
8080
8181extern crate alloc;
82+ #[ cfg( feature = "std" ) ]
83+ extern crate std;
8284
8385/// We can't use `?` in const contexts yet, so this macro acts
8486/// as a workaround.
Original file line number Diff line number Diff line change @@ -420,7 +420,7 @@ impl<M> Builder<M> {
420420
421421 #[ inline]
422422 fn thread_id ( ) -> ThreadId {
423- thread_local ! {
423+ std :: thread_local! {
424424 static ID : ThreadId = thread:: current( ) . id( ) ;
425425 }
426426 ID . try_with ( |id| * id)
You can’t perform that action at this time.
0 commit comments