1
Fork 0

create a feature gate

This commit is contained in:
jdonszelmann 2024-05-14 16:10:05 +02:00
parent c45e831d8f
commit 42119ff45c
No known key found for this signature in database
GPG key ID: E0C1EA36407B2FF2
4 changed files with 5 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) {