gate_all!(const_trait_bound_opt_out, "`?const` on trait bounds is experimental");
gate_all!(const_trait_impl, "const trait impls are experimental");
gate_all!(half_open_range_patterns, "half-open range patterns are unstable");
+ gate_all!(inline_const, "inline-const is experimental");
+ if sess.parse_sess.span_diagnostic.err_count() == 0 {
+ // Errors for `destructuring_assignment` can get quite noisy, especially where `_` is
+ // involved, so we only emit errors where there are no other parsing errors.
+ gate_all!(destructuring_assignment, "destructuring assignments are unstable");
+ }
// All uses of `gate_all!` below this point were added in #65742,
// and subsequently disabled (with the non-early gating readded).