Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Commit e690971

Browse files
committed
Rename unstable-test-support to unstable-public-internals
The `support` module that this feature makes public will be useful for implementations in `compiler-builtins`, not only for testing. Give this feature a more accurate name.
1 parent b67e65b commit e690971

File tree

4 files changed

+10
-13
lines changed

4 files changed

+10
-13
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ unstable = ["unstable-intrinsics", "unstable-float"]
2727
unstable-intrinsics = []
2828

2929
# Make some internal things public for testing.
30-
unstable-test-support = []
30+
unstable-public-internals = []
3131

3232
# Enable the nightly-only `f16` and `f128`.
3333
unstable-float = []

crates/compiler-builtins-smoke-test/Cargo.toml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,16 @@ publish = false
99
test = false
1010
bench = false
1111

12-
[features]
13-
# Duplicated from libm's Cargo.toml
14-
unstable = []
15-
unstable-intrinsics = []
16-
unstable-test-support = []
17-
checked = []
18-
force-soft-floats = []
19-
2012
[lints.rust]
2113
unexpected_cfgs = { level = "warn", check-cfg = [
2214
"cfg(arch_enabled)",
2315
"cfg(assert_no_panic)",
2416
"cfg(f128_enabled)",
2517
"cfg(f16_enabled)",
2618
"cfg(intrinsics_enabled)",
19+
'cfg(feature, values("checked"))',
20+
'cfg(feature, values("force-soft-floats"))',
21+
'cfg(feature, values("unstable"))',
22+
'cfg(feature, values("unstable-intrinsics"))',
23+
'cfg(feature, values("unstable-public-internals"))',
2724
] }

crates/libm-test/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ short-benchmarks = []
2626
[dependencies]
2727
anyhow = "1.0.90"
2828
az = { version = "1.2.1", optional = true }
29-
libm = { path = "../..", features = ["unstable-test-support"] }
29+
libm = { path = "../..", features = ["unstable-public-internals"] }
3030
libm-macros = { path = "../libm-macros" }
3131
musl-math-sys = { path = "../musl-math-sys", optional = true }
3232
paste = "1.0.15"

src/math/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,15 +76,15 @@ macro_rules! div {
7676

7777
// `support` may be public for testing
7878
#[macro_use]
79-
#[cfg(feature = "unstable-test-support")]
79+
#[cfg(feature = "unstable-public-internals")]
8080
pub mod support;
8181

8282
#[macro_use]
83-
#[cfg(not(feature = "unstable-test-support"))]
83+
#[cfg(not(feature = "unstable-public-internals"))]
8484
mod support;
8585

8686
cfg_if! {
87-
if #[cfg(feature = "unstable-test-support")] {
87+
if #[cfg(feature = "unstable-public-internals")] {
8888
pub mod generic;
8989
} else {
9090
mod generic;

0 commit comments

Comments
 (0)