1
Fork 0

Add postfix-match experimental feature

Co-authored-by: Josh Stone <jistone@redhat.com>
This commit is contained in:
Ross Smyth 2024-02-15 19:54:35 -05:00
parent 62415e2a95
commit 68a58f255a
13 changed files with 226 additions and 1 deletions

View file

@ -565,6 +565,7 @@ pub fn check_crate(krate: &ast::Crate, sess: &Session, features: &Features) {
gate_all!(generic_const_items, "generic const items are experimental");
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");
if !visitor.features.never_patterns {
if let Some(spans) = spans.get(&sym::never_patterns) {