about summary refs log tree commit diff
path: root/library/proc_macro/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'library/proc_macro/src/lib.rs')
-rw-r--r--library/proc_macro/src/lib.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/library/proc_macro/src/lib.rs b/library/proc_macro/src/lib.rs
index 5f1f7d8cac4..c7f58f36154 100644
--- a/library/proc_macro/src/lib.rs
+++ b/library/proc_macro/src/lib.rs
@@ -21,7 +21,8 @@
 #![feature(rustc_allow_const_fn_unstable)]
 #![feature(nll)]
 #![feature(staged_api)]
-#![feature(const_fn)]
+#![cfg_attr(bootstrap, feature(const_fn))]
+#![cfg_attr(not(bootstrap), feature(const_fn_trait_bound))]
 #![feature(const_fn_fn_ptr_basics)]
 #![feature(allow_internal_unstable)]
 #![feature(decl_macro)]