]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc/front/feature_gate.rs
librustc: Implement overloading for the call operator behind a feature
[rust.git] / src / librustc / front / feature_gate.rs
index 25f0dc808c849f62ca1da0391bef7f2e78a04c29..5edee5ea2ef735bc17ff1828e17f8bc9c74983ee 100644 (file)
@@ -56,6 +56,7 @@
     ("quote", Active),
     ("linkage", Active),
     ("struct_inherit", Active),
+    ("overloaded_calls", Active),
 
     ("quad_precision_float", Active),
 
@@ -86,6 +87,7 @@ 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>,
 }
 
 impl Features {
@@ -94,6 +96,7 @@ pub fn new() -> Features {
             default_type_params: Cell::new(false),
             quad_precision_float: Cell::new(false),
             issue_5723_bootstrap: Cell::new(false),
+            overloaded_calls: Cell::new(false),
         }
     }
 }
@@ -376,4 +379,5 @@ pub fn check_crate(sess: &Session, krate: &ast::Crate) {
     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"));
 }