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"]
27
27
unstable-intrinsics = []
28
28
29
29
# Make some internal things public for testing.
30
- unstable-test-support = []
30
+ unstable-public-internals = []
31
31
32
32
# Enable the nightly-only `f16` and `f128`.
33
33
unstable-float = []
Original file line number Diff line number Diff line change @@ -9,19 +9,16 @@ publish = false
9
9
test = false
10
10
bench = false
11
11
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
-
20
12
[lints .rust ]
21
13
unexpected_cfgs = { level = " warn" , check-cfg = [
22
14
" cfg(arch_enabled)" ,
23
15
" cfg(assert_no_panic)" ,
24
16
" cfg(f128_enabled)" ,
25
17
" cfg(f16_enabled)" ,
26
18
" 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"))' ,
27
24
] }
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ short-benchmarks = []
26
26
[dependencies ]
27
27
anyhow = " 1.0.90"
28
28
az = { version = " 1.2.1" , optional = true }
29
- libm = { path = " ../.." , features = [" unstable-test-support " ] }
29
+ libm = { path = " ../.." , features = [" unstable-public-internals " ] }
30
30
libm-macros = { path = " ../libm-macros" }
31
31
musl-math-sys = { path = " ../musl-math-sys" , optional = true }
32
32
paste = " 1.0.15"
Original file line number Diff line number Diff line change @@ -76,15 +76,15 @@ macro_rules! div {
76
76
77
77
// `support` may be public for testing
78
78
#[ macro_use]
79
- #[ cfg( feature = "unstable-test-support " ) ]
79
+ #[ cfg( feature = "unstable-public-internals " ) ]
80
80
pub mod support;
81
81
82
82
#[ macro_use]
83
- #[ cfg( not( feature = "unstable-test-support " ) ) ]
83
+ #[ cfg( not( feature = "unstable-public-internals " ) ) ]
84
84
mod support;
85
85
86
86
cfg_if ! {
87
- if #[ cfg( feature = "unstable-test-support " ) ] {
87
+ if #[ cfg( feature = "unstable-public-internals " ) ] {
88
88
pub mod generic;
89
89
} else {
90
90
mod generic;
You can’t perform that action at this time.
0 commit comments