File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 165165#[ doc( hidden) ]
166166pub extern crate core;
167167
168- use core:: cell:: UnsafeCell ;
169168use core:: marker:: PhantomData ;
170169use core:: ops:: Deref ;
171170use core:: ptr;
172- #[ cfg( target_family = "wasm" ) ]
173- use core:: sync:: atomic:: AtomicBool ;
174171use core:: sync:: atomic:: { AtomicPtr , Ordering } ;
175172
173+ pub type UnsafeCell < T > = core:: cell:: UnsafeCell < T > ;
174+ #[ cfg( target_family = "wasm" ) ]
175+ pub type AtomicBool = core:: sync:: atomic:: AtomicBool ;
176+
176177// Not public API. Used by generated code.
177178#[ doc( hidden) ]
178179pub struct Registry {
@@ -504,9 +505,9 @@ macro_rules! __do_submit {
504505 const _: ( ) = {
505506 static __INVENTORY: $crate:: Node = $crate:: Node {
506507 value: & { $( $value) * } ,
507- next: $crate:: core :: cell :: UnsafeCell :: new( $crate:: core:: option:: Option :: None ) ,
508+ next: $crate:: UnsafeCell :: new( $crate:: core:: option:: Option :: None ) ,
508509 #[ cfg( target_family = "wasm" ) ]
509- initialized: $crate:: core :: sync :: atomic :: AtomicBool :: new( false ) ,
510+ initialized: $crate:: AtomicBool :: new( false ) ,
510511 } ;
511512
512513 #[ cfg_attr( any( target_os = "linux" , target_os = "android" ) , link_section = ".text.startup" ) ]
You can’t perform that action at this time.
0 commit comments