about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorRemy Rakic <remy.rakic@gmail.com>2019-12-05 15:01:30 +0100
committerRemy Rakic <remy.rakic@gmail.com>2019-12-05 15:01:30 +0100
commitbc0df79db39c00cdb7dae4b6aff62ff9f2efc405 (patch)
treea3d36dc16d31dc407fa42195aa5858b3a7b69911 /src/libcore
parent0f12711dd0e51cc839c66407c77c83560019c224 (diff)
downloadrust-bc0df79db39c00cdb7dae4b6aff62ff9f2efc405.tar.gz
rust-bc0df79db39c00cdb7dae4b6aff62ff9f2efc405.zip
libcore: rnable 2 unstable const fn features
So that we can bootstrap successfully
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/lib.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libcore/lib.rs b/src/libcore/lib.rs
index ec19392450a..188ea1a9631 100644
--- a/src/libcore/lib.rs
+++ b/src/libcore/lib.rs
@@ -74,6 +74,8 @@
 #![feature(const_fn)]
 #![feature(const_fn_union)]
 #![feature(const_generics)]
+#![cfg_attr(not(bootstrap), feature(const_ptr_offset_from))]
+#![cfg_attr(not(bootstrap), feature(const_type_name))]
 #![feature(custom_inner_attributes)]
 #![feature(decl_macro)]
 #![feature(doc_cfg)]