1
Fork 0

Rollup merge of #125314 - jdonszelmann:global-registration-feature-gate, r=pnkfelix

Add an experimental feature gate for global registration

See #125119 for the tracking issue.
This commit is contained in:
Matthias Krüger 2024-05-20 18:13:49 +02:00 committed by GitHub
commit a79737c3f0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 20 additions and 0 deletions

View file

@ -560,6 +560,7 @@ pub fn check_crate(krate: &ast::Crate, sess: &Session, features: &Features) {
gate_all!(postfix_match, "postfix match is experimental");
gate_all!(mut_ref, "mutable by-reference bindings are experimental");
gate_all!(precise_capturing, "precise captures on `impl Trait` are experimental");
gate_all!(global_registration, "global registration is experimental");
if !visitor.features.never_patterns {
if let Some(spans) = spans.get(&sym::never_patterns) {