Skip to content

Commit 0ccb528

Browse files
committed
Auto merge of rust-lang#84556 - RalfJung:const-fn-trait-bound, r=oli-obk
use correct feature flag for impl-block-level trait bounds on const fn I am not sure what that special hack was needed for, but it doesn't seem needed any more... This removes the last use of the `const_fn` feature flag -- Cc rust-lang#84510 r? `@oli-obk`
2 parents 92755a9 + 096feab commit 0ccb528

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

proc_macro/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
#![feature(rustc_allow_const_fn_unstable)]
2222
#![feature(nll)]
2323
#![feature(staged_api)]
24-
#![feature(const_fn)]
24+
#![cfg_attr(bootstrap, feature(const_fn))]
25+
#![cfg_attr(not(bootstrap), feature(const_fn_trait_bound))]
2526
#![feature(const_fn_fn_ptr_basics)]
2627
#![feature(allow_internal_unstable)]
2728
#![feature(decl_macro)]

0 commit comments

Comments
 (0)