File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
1
//! Helpers built around pointer-sized atomics.
2
- #![ cfg( target_has_atomic = "ptr" ) ]
3
- #![ allow( dead_code) ]
4
2
use core:: sync:: atomic:: { AtomicUsize , Ordering } ;
5
3
6
4
// This structure represents a lazily initialized static usize value. Useful
Original file line number Diff line number Diff line change @@ -248,7 +248,6 @@ extern crate cfg_if;
248
248
use core:: mem:: MaybeUninit ;
249
249
250
250
mod error;
251
- mod lazy;
252
251
mod util;
253
252
254
253
#[ cfg( feature = "std" ) ]
@@ -275,6 +274,8 @@ cfg_if! {
275
274
} else if #[ cfg( getrandom_backend = "rdrand" ) ] {
276
275
#[ cfg( not( any( target_arch = "x86_64" , target_arch = "x86" ) ) ) ]
277
276
compile_error!( "`rdrand` backend can be enabled only for x86 and x86-64 targets!" ) ;
277
+
278
+ mod lazy;
278
279
#[ path = "rdrand.rs" ] mod imp;
279
280
} else if #[ cfg( getrandom_backend = "wasm_js" ) ] {
280
281
#[ cfg( not( all(
@@ -351,6 +352,7 @@ cfg_if! {
351
352
) ,
352
353
)
353
354
) ) ] {
355
+ mod lazy;
354
356
mod util_libc;
355
357
mod use_file;
356
358
mod linux_android;
@@ -387,6 +389,7 @@ cfg_if! {
387
389
} else if #[ cfg( windows) ] {
388
390
#[ path = "windows.rs" ] mod imp;
389
391
} else if #[ cfg( all( target_arch = "x86_64" , target_env = "sgx" ) ) ] {
392
+ mod lazy;
390
393
#[ path = "rdrand.rs" ] mod imp;
391
394
} else if #[ cfg( all(
392
395
any( target_arch = "wasm32" , target_arch = "wasm64" ) ,
You can’t perform that action at this time.
0 commit comments