File tree Expand file tree Collapse file tree 3 files changed +12
-1
lines changed
crates/compiler-builtins-smoke-test Expand file tree Collapse file tree 3 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,9 @@ unstable = ["unstable-intrinsics"]
26
26
# Enable calls to functions in `core::intrinsics`
27
27
unstable-intrinsics = []
28
28
29
+ # Make some internal things public for testing.
30
+ unstable-test-support = []
31
+
29
32
# Used to prevent using any intrinsics or arch-specific code.
30
33
#
31
34
# HACK: this is a negative feature which is generally a bad idea in Cargo, but
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ bench = false
13
13
# Duplicated from libm's Cargo.toml
14
14
unstable = []
15
15
unstable-intrinsics = []
16
+ unstable-test-support = []
16
17
checked = []
17
18
force-soft-floats = []
18
19
Original file line number Diff line number Diff line change @@ -74,9 +74,16 @@ macro_rules! div {
74
74
} ;
75
75
}
76
76
77
- // Private modules
77
+ // `support` may be public for testing
78
+ #[ macro_use]
79
+ #[ cfg( feature = "unstable-test-support" ) ]
80
+ pub mod support;
81
+
78
82
#[ macro_use]
83
+ #[ cfg( not( feature = "unstable-test-support" ) ) ]
79
84
mod support;
85
+
86
+ // Private modules
80
87
mod arch;
81
88
mod expo2;
82
89
mod fenv;
You can’t perform that action at this time.
0 commit comments