File tree Expand file tree Collapse file tree 2 files changed +11
-8
lines changed
crates/std_detect/src/detect Expand file tree Collapse file tree 2 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,9 @@ macro_rules! features {
4343 } ;
4444 }
4545
46+ #[ cfg( not( test) ) ]
47+ pub use $macro_name;
48+
4649 /// Each variant denotes a position in a bitset for a particular feature.
4750 ///
4851 /// 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! {
2929 if #[ cfg( any( target_arch = "x86" , target_arch = "x86_64" ) ) ] {
3030 #[ path = "arch/x86.rs" ]
3131 #[ macro_use]
32- mod arch;
32+ pub ( crate ) mod arch;
3333 } else if #[ cfg( target_arch = "arm" ) ] {
3434 #[ path = "arch/arm.rs" ]
3535 #[ macro_use]
36- mod arch;
36+ pub ( crate ) mod arch;
3737 } else if #[ cfg( target_arch = "aarch64" ) ] {
3838 #[ path = "arch/aarch64.rs" ]
3939 #[ macro_use]
40- mod arch;
40+ pub ( crate ) mod arch;
4141 } else if #[ cfg( target_arch = "powerpc" ) ] {
4242 #[ path = "arch/powerpc.rs" ]
4343 #[ macro_use]
44- mod arch;
44+ pub ( crate ) mod arch;
4545 } else if #[ cfg( target_arch = "powerpc64" ) ] {
4646 #[ path = "arch/powerpc64.rs" ]
4747 #[ macro_use]
48- mod arch;
48+ pub ( crate ) mod arch;
4949 } else if #[ cfg( target_arch = "mips" ) ] {
5050 #[ path = "arch/mips.rs" ]
5151 #[ macro_use]
52- mod arch;
52+ pub ( crate ) mod arch;
5353 } else if #[ cfg( target_arch = "mips64" ) ] {
5454 #[ path = "arch/mips64.rs" ]
5555 #[ macro_use]
56- mod arch;
56+ pub ( crate ) mod arch;
5757 } else {
5858 // Unimplemented architecture:
5959 #[ allow( dead_code) ]
60- mod arch {
60+ pub ( crate ) mod arch {
6161 #[ doc( hidden) ]
6262 pub ( crate ) enum Feature {
6363 Null
You can’t perform that action at this time.
0 commit comments