about summary refs log tree commit diff
path: root/src/librustc_const_math
diff options
context:
space:
mode:
authorAlex Burka <alex@alexburka.com>2017-09-08 18:26:54 +0000
committerAlex Burka <alex@alexburka.com>2017-09-16 15:53:02 +0000
commit681e5da61ee3f1251c00c2ec0d93dd23dbf861bc (patch)
treea6e75c81f714d9869123ffe5b3c34fbfc05fae61 /src/librustc_const_math
parenta12d0d4f6672a9621771433d2f05757f1f79130d (diff)
change #![feature(const_fn)] to specific gates
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;