Skip to content

Commit 6a7c2dd

Browse files
committed
Rename feature
1 parent 5e560e7 commit 6a7c2dd

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ std = []
2828
align = []
2929
rustc-dep-of-std = ['align', 'rustc-std-workspace-core']
3030
extra_traits = []
31-
const-fn = []
31+
extern-const-fn = []
3232
# use_std is deprecated, use `std` instead
3333
use_std = [ 'std' ]
3434

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
#![no_std]
3535
#![cfg_attr(feature = "rustc-dep-of-std", no_core)]
3636
#![cfg_attr(target_os = "redox", feature(static_nobundle))]
37-
#![cfg_attr(feature = "const-fn", feature(const_extern_fn))]
37+
#![cfg_attr(feature = "extern-const-fn", feature(const_extern_fn))]
3838

3939
#[macro_use]
4040
mod macros;

src/macros.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,9 @@ macro_rules! s_no_extra_traits {
121121
);
122122
}
123123

124+
// This is pretty horrible
124125
cfg_if! {
125-
if #[cfg(feature = "const-fn")] {
126+
if #[cfg(feature = "extern-const-fn")] {
126127
#[allow(unused_macros)]
127128
macro_rules! f {
128129
($(pub fn $i:ident($($arg:ident: $argty:ty),*) $($constness:ident)* -> $ret:ty {

0 commit comments

Comments
 (0)