1
Fork 0

Feature gate

This commit is contained in:
Jules Bertholet 2024-03-26 01:23:26 -04:00
parent e0da13f25f
commit 528d45af18
No known key found for this signature in database
GPG key ID: 32034DAFC38C1BFC
9 changed files with 76 additions and 9 deletions

View file

@ -565,6 +565,7 @@ pub fn check_crate(krate: &ast::Crate, sess: &Session, features: &Features) {
gate_all!(unnamed_fields, "unnamed fields are not yet fully implemented");
gate_all!(fn_delegation, "functions delegation is not yet fully implemented");
gate_all!(postfix_match, "postfix match is experimental");
gate_all!(mut_ref, "mutable by-reference bindings are experimental");
if !visitor.features.never_patterns {
if let Some(spans) = spans.get(&sym::never_patterns) {