Skip to content

Commit 096feab

Browse files
committed
don't let const_fn feature flag affect impl-block-level trait bounds
1 parent 08b9cb5 commit 096feab

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)