Skip to content

Commit 369a795

Browse files
committed
cleanup: Remove the const-extern-fn feature
Since moving from a feature to a `cfg`, this feature is unneeded. Remove it in 1.0. Not intended for backport.
1 parent 093cf26 commit 369a795

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

Cargo.toml

+1-5
Original file line numberDiff line numberDiff line change
@@ -135,14 +135,10 @@ cargo-args = ["-Zbuild-std=core"]
135135
rustc-std-workspace-core = { version = "1.0.0", optional = true }
136136

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

143-
# `const-extern-function` is deprecated and no longer does anything
144-
# FIXME(1.0): remove this completely
145-
const-extern-fn = []
146-
147143
[workspace]
148144
members = ["libc-test"]

ci/verify-build.sh

-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ test_target() {
6262

6363
# Test with expected combinations of features
6464
$cmd
65-
$cmd --features const-extern-fn
6665
$cmd --features extra_traits
6766

6867
# Test again without default features, i.e. without "std"

src/macros.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ macro_rules! e {
169169

170170
// This is a pretty horrible hack to allow us to conditionally mark
171171
// some functions as 'const', without requiring users of this macro
172-
// to care about the "const-extern-fn" feature.
172+
// to care about the "const-extern-fn" feature (or `const_extern_fn` config).
173173
//
174174
// When 'const-extern-fn' is enabled, we emit the captured 'const' keyword
175175
// in the expanded function.

0 commit comments

Comments
 (0)