File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
src/libsyntax/feature_gate Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -876,6 +876,21 @@ pub fn check_crate(krate: &ast::Crate,
876876 gate_all ! ( yields, generators, "yield syntax is experimental" ) ;
877877 gate_all ! ( or_patterns, "or-patterns syntax is experimental" ) ;
878878 gate_all ! ( const_extern_fn, "`const extern fn` definitions are unstable" ) ;
879+
880+ // All uses of `gate_all!` below this point were added in #65742,
881+ // and subsequently disabled (with the non-early gating readded).
882+ macro_rules! gate_all {
883+ ( $gate: ident, $msg: literal) => {
884+ // FIXME(eddyb) do something more useful than always
885+ // disabling these uses of early feature-gatings.
886+ if false {
887+ for span in & * parse_sess. gated_spans. $gate. borrow( ) {
888+ gate_feature!( & visitor, $gate, * span, $msg) ;
889+ }
890+ }
891+ }
892+ }
893+
879894 gate_all ! ( trait_alias, "trait aliases are experimental" ) ;
880895 gate_all ! ( associated_type_bounds, "associated type bounds are unstable" ) ;
881896 gate_all ! ( crate_visibility_modifier, "`crate` visibility modifier is experimental" ) ;
You can’t perform that action at this time.
0 commit comments