Commit 27e01a1 1 parent 803616a commit 27e01a1 Copy full SHA for 27e01a1
File tree 1 file changed +15
-0
lines changed
src/libsyntax/feature_gate
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,
876
876
gate_all ! ( yields, generators, "yield syntax is experimental" ) ;
877
877
gate_all ! ( or_patterns, "or-patterns syntax is experimental" ) ;
878
878
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
+
879
894
gate_all ! ( trait_alias, "trait aliases are experimental" ) ;
880
895
gate_all ! ( associated_type_bounds, "associated type bounds are unstable" ) ;
881
896
gate_all ! ( crate_visibility_modifier, "`crate` visibility modifier is experimental" ) ;
You can’t perform that action at this time.
0 commit comments