Skip to content

Commit 9f23a63

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
1 parent 666b332 commit 9f23a63

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
@@ -135,7 +135,7 @@ cargo-args = ["-Zbuild-std=core"]
135135
rustc-std-workspace-core = { version = "1.0.0", optional = true }
136136

137137
[features]
138-
default = ["std"]
138+
default = ["const-extern-fn", "std"]
139139
std = []
140140
rustc-dep-of-std = ["rustc-std-workspace-core"]
141141
extra_traits = []

0 commit comments

Comments
 (0)