about summary refs log tree commit diff
path: root/src/librustc/front
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-06-24 16:34:46 -0700
committerAlex Crichton <alex@alexcrichton.com>2014-06-24 16:36:12 -0700
commit3d308fe65b5aa653b482341a04f301b02f263c3b (patch)
tree1e2d5d31c7f4c8325ea0010a595f97cd3316933f /src/librustc/front
parent719ffc2484e59476dc153d3503a5adfe79487e11 (diff)
downloadrust-3d308fe65b5aa653b482341a04f301b02f263c3b.tar.gz
rust-3d308fe65b5aa653b482341a04f301b02f263c3b.zip
Remove the quad_precision_float feature gate
The f128 type has very little support in the compiler and the feature is
basically unusable today. Supporting half-baked features in the compiler can be
detrimental to the long-term development of the compiler, and hence this feature
is being removed.
Diffstat (limited to 'src/librustc/front')
-rw-r--r--src/librustc/front/feature_gate.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/librustc/front/feature_gate.rs b/src/librustc/front/feature_gate.rs
index 59e52b9359f..10d039e4903 100644
--- a/src/librustc/front/feature_gate.rs
+++ b/src/librustc/front/feature_gate.rs
@@ -64,7 +64,7 @@ static KNOWN_FEATURES: &'static [(&'static str, Status)] = &[
     ("overloaded_calls", Active),
     ("unboxed_closure_sugar", Active),
 
-    ("quad_precision_float", Active),
+    ("quad_precision_float", Removed),
 
     // A temporary feature gate used to enable parser extensions needed
     // to bootstrap fix for #5723.
@@ -91,7 +91,6 @@ enum Status {
 /// A set of features to be used by later passes.
 pub struct Features {
     pub default_type_params: Cell<bool>,
-    pub quad_precision_float: Cell<bool>,
     pub issue_5723_bootstrap: Cell<bool>,
     pub overloaded_calls: Cell<bool>,
 }
@@ -100,7 +99,6 @@ impl Features {
     pub fn new() -> Features {
         Features {
             default_type_params: Cell::new(false),
-            quad_precision_float: Cell::new(false),
             issue_5723_bootstrap: Cell::new(false),
             overloaded_calls: Cell::new(false),
         }
@@ -425,7 +423,6 @@ pub fn check_crate(sess: &Session, krate: &ast::Crate) {
     sess.abort_if_errors();
 
     sess.features.default_type_params.set(cx.has_feature("default_type_params"));
-    sess.features.quad_precision_float.set(cx.has_feature("quad_precision_float"));
     sess.features.issue_5723_bootstrap.set(cx.has_feature("issue_5723_bootstrap"));
     sess.features.overloaded_calls.set(cx.has_feature("overloaded_calls"));
 }