Commit 7d287d8 1 parent efb9a2c commit 7d287d8 Copy full SHA for 7d287d8
File tree 2 files changed +11
-8
lines changed
crates/std_detect/src/detect
2 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,9 @@ macro_rules! features {
43
43
} ;
44
44
}
45
45
46
+ #[ cfg( not( test) ) ]
47
+ pub use $macro_name;
48
+
46
49
/// Each variant denotes a position in a bitset for a particular feature.
47
50
///
48
51
/// PLEASE: do not use this, it is an implementation detail subject
Original file line number Diff line number Diff line change @@ -29,35 +29,35 @@ cfg_if! {
29
29
if #[ cfg( any( target_arch = "x86" , target_arch = "x86_64" ) ) ] {
30
30
#[ path = "arch/x86.rs" ]
31
31
#[ macro_use]
32
- mod arch;
32
+ pub ( crate ) mod arch;
33
33
} else if #[ cfg( target_arch = "arm" ) ] {
34
34
#[ path = "arch/arm.rs" ]
35
35
#[ macro_use]
36
- mod arch;
36
+ pub ( crate ) mod arch;
37
37
} else if #[ cfg( target_arch = "aarch64" ) ] {
38
38
#[ path = "arch/aarch64.rs" ]
39
39
#[ macro_use]
40
- mod arch;
40
+ pub ( crate ) mod arch;
41
41
} else if #[ cfg( target_arch = "powerpc" ) ] {
42
42
#[ path = "arch/powerpc.rs" ]
43
43
#[ macro_use]
44
- mod arch;
44
+ pub ( crate ) mod arch;
45
45
} else if #[ cfg( target_arch = "powerpc64" ) ] {
46
46
#[ path = "arch/powerpc64.rs" ]
47
47
#[ macro_use]
48
- mod arch;
48
+ pub ( crate ) mod arch;
49
49
} else if #[ cfg( target_arch = "mips" ) ] {
50
50
#[ path = "arch/mips.rs" ]
51
51
#[ macro_use]
52
- mod arch;
52
+ pub ( crate ) mod arch;
53
53
} else if #[ cfg( target_arch = "mips64" ) ] {
54
54
#[ path = "arch/mips64.rs" ]
55
55
#[ macro_use]
56
- mod arch;
56
+ pub ( crate ) mod arch;
57
57
} else {
58
58
// Unimplemented architecture:
59
59
#[ allow( dead_code) ]
60
- mod arch {
60
+ pub ( crate ) mod arch {
61
61
#[ doc( hidden) ]
62
62
pub ( crate ) enum Feature {
63
63
Null
You can’t perform that action at this time.
0 commit comments