@@ -59,6 +59,10 @@ static KNOWN_FEATURES: &'static [(&'static str, Status)] = &[
5959
6060 ( "quad_precision_float" , Active ) ,
6161
62+ // A temporary feature gate used to enable parser extensions needed
63+ // to bootstrap fix for #5723.
64+ ( "issue_5723_bootstrap" , Active ) ,
65+
6266 // These are used to test this portion of the compiler, they don't actually
6367 // mean anything
6468 ( "test_accepted_feature" , Accepted ) ,
@@ -80,14 +84,16 @@ enum Status {
8084/// A set of features to be used by later passes.
8185pub struct Features {
8286 pub default_type_params : Cell < bool > ,
83- pub quad_precision_float : Cell < bool >
87+ pub quad_precision_float : Cell < bool > ,
88+ pub issue_5723_bootstrap : Cell < bool > ,
8489}
8590
8691impl Features {
8792 pub fn new ( ) -> Features {
8893 Features {
8994 default_type_params : Cell :: new ( false ) ,
90- quad_precision_float : Cell :: new ( false )
95+ quad_precision_float : Cell :: new ( false ) ,
96+ issue_5723_bootstrap : Cell :: new ( false ) ,
9197 }
9298 }
9399}
@@ -367,4 +373,5 @@ pub fn check_crate(sess: &Session, krate: &ast::Crate) {
367373
368374 sess. features . default_type_params . set ( cx. has_feature ( "default_type_params" ) ) ;
369375 sess. features . quad_precision_float . set ( cx. has_feature ( "quad_precision_float" ) ) ;
376+ sess. features . issue_5723_bootstrap . set ( cx. has_feature ( "issue_5723_bootstrap" ) ) ;
370377}
0 commit comments