This repository was archived by the owner on Apr 28, 2025. It is now read-only.
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"]
2626# Enable calls to functions in `core::intrinsics`
2727unstable-intrinsics = []
2828
29+ # Make some internal things public for testing.
30+ unstable-test-support = []
31+
2932# Used to prevent using any intrinsics or arch-specific code.
3033#
3134# 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
1313# Duplicated from libm's Cargo.toml
1414unstable = []
1515unstable-intrinsics = []
16+ unstable-test-support = []
1617checked = []
1718force-soft-floats = []
1819
Original file line number Diff line number Diff line change @@ -74,9 +74,16 @@ macro_rules! div {
7474 } ;
7575}
7676
77- // Private modules
77+ // `support` may be public for testing
78+ #[ macro_use]
79+ #[ cfg( feature = "unstable-test-support" ) ]
80+ pub mod support;
81+
7882#[ macro_use]
83+ #[ cfg( not( feature = "unstable-test-support" ) ) ]
7984mod support;
85+
86+ // Private modules
8087mod arch;
8188mod expo2;
8289mod fenv;
You can’t perform that action at this time.
0 commit comments