This repository was archived by the owner on Apr 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +10
-13
lines changed
compiler-builtins-smoke-test Expand file tree Collapse file tree 4 files changed +10
-13
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ unstable = ["unstable-intrinsics", "unstable-float"]
2727unstable-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`.
3333unstable-float = []
Original file line number Diff line number Diff line change @@ -9,19 +9,16 @@ publish = false
99test = false
1010bench = 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 ]
2113unexpected_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] }
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ short-benchmarks = []
2626[dependencies ]
2727anyhow = " 1.0.90"
2828az = { version = " 1.2.1" , optional = true }
29- libm = { path = " ../.." , features = [" unstable-test-support " ] }
29+ libm = { path = " ../.." , features = [" unstable-public-internals " ] }
3030libm-macros = { path = " ../libm-macros" }
3131musl-math-sys = { path = " ../musl-math-sys" , optional = true }
3232paste = " 1.0.15"
Original file line number Diff line number Diff 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 " ) ]
8080pub mod support;
8181
8282#[ macro_use]
83- #[ cfg( not( feature = "unstable-test-support " ) ) ]
83+ #[ cfg( not( feature = "unstable-public-internals " ) ) ]
8484mod support;
8585
8686cfg_if ! {
87- if #[ cfg( feature = "unstable-test-support " ) ] {
87+ if #[ cfg( feature = "unstable-public-internals " ) ] {
8888 pub mod generic;
8989 } else {
9090 mod generic;
You can’t perform that action at this time.
0 commit comments