about summary refs log tree commit diff
path: root/src/librustc_const_math
diff options
context:
space:
mode:
Diffstat (limited to 'src/librustc_const_math')
-rw-r--r--src/librustc_const_math/lib.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/librustc_const_math/lib.rs b/src/librustc_const_math/lib.rs
index 93b70ef8e4a..0533f10104a 100644
--- a/src/librustc_const_math/lib.rs
+++ b/src/librustc_const_math/lib.rs
@@ -19,10 +19,13 @@
       html_root_url = "https://doc.rust-lang.org/nightly/")]
 #![deny(warnings)]
 
-#![feature(const_fn)]
 #![feature(i128)]
 #![feature(i128_type)]
 
+#![cfg_attr(stage0, feature(const_fn))]
+#![cfg_attr(not(stage0), feature(const_min_value))]
+#![cfg_attr(not(stage0), feature(const_max_value))]
+
 extern crate rustc_apfloat;
 
 extern crate syntax;