File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed
crates/std_detect/src/detect Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 3
3
4
4
#![ allow( dead_code) ] // not used on all platforms
5
5
6
- use sync:: atomic:: Ordering ;
6
+ use crate :: sync:: atomic:: Ordering ;
7
7
8
8
#[ cfg( target_pointer_width = "64" ) ]
9
- use sync:: atomic:: AtomicU64 ;
9
+ use crate :: sync:: atomic:: AtomicU64 ;
10
10
11
11
#[ cfg( target_pointer_width = "32" ) ]
12
- use sync:: atomic:: AtomicU32 ;
12
+ use crate :: sync:: atomic:: AtomicU32 ;
13
13
14
14
/// Sets the `bit` of `x`.
15
15
#[ inline]
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ cfg_if! {
5
5
mod aarch64;
6
6
pub use self :: aarch64:: check_for;
7
7
} else {
8
- use arch:: detect:: Feature ;
8
+ use crate :: arch:: detect:: Feature ;
9
9
/// Performs run-time feature detection.
10
10
pub fn check_for( _x: Feature ) -> bool {
11
11
false
Original file line number Diff line number Diff line change 2
2
#![ cfg_attr( not( target_arch = "aarch64" ) , allow( dead_code) ) ]
3
3
4
4
#[ cfg( feature = "std_detect_file_io" ) ]
5
- use :: { fs:: File , io:: Read } ;
5
+ use crate :: { fs:: File , io:: Read } ;
6
6
7
7
/// Key to access the CPU Hardware capabilities bitfield.
8
8
pub ( crate ) const AT_HWCAP : usize = 16 ;
Original file line number Diff line number Diff line change 1
1
//! x86 run-time feature detection is OS independent.
2
2
3
3
#[ cfg( target_arch = "x86" ) ]
4
- use arch:: x86:: * ;
4
+ use crate :: arch:: x86:: * ;
5
5
#[ cfg( target_arch = "x86_64" ) ]
6
- use arch:: x86_64:: * ;
6
+ use crate :: arch:: x86_64:: * ;
7
7
8
- use mem;
8
+ use crate :: mem;
9
9
10
10
use crate :: detect:: { Feature , cache, bit} ;
11
11
You can’t perform that action at this time.
0 commit comments