Skip to content

Commit c2bded3

Browse files
committed
fix: make sure the const-extern-fn feature is enabled
This was dropped in fa554bc on `main` and 674cc1f on `libc-0.2` ("Drop the libc_const_extern_fn conditional"). Unfortunately, this meant that functions were incorrectly never getting marked `const`, which showed up with `CMSG_SPACE` [1]. Instead of the fix here, I attempted to just use `cfg(not(libc_ctest))` instead of a Cargo feature to enable `const` extern functions; however, this seemed extremely problematic with `ctest` for some reason [2]. Instead, leave the feature as-is and just make it enabled by default. Fixes: #4115 [1] [2]: #4134 (backport <#4134>) (cherry picked from commit 19e9e6a)
1 parent c93e86c commit c2bded3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ cargo-args = ["-Zbuild-std=core"]
137137
rustc-std-workspace-core = { version = "1.0.0", optional = true }
138138

139139
[features]
140-
default = ["std"]
140+
default = ["const-extern-fn", "std"]
141141
std = []
142142
rustc-dep-of-std = ['align', 'rustc-std-workspace-core']
143143
extra_traits = []

0 commit comments

Comments
 (0)