Add postfix-match experimental feature
Co-authored-by: Josh Stone <jistone@redhat.com>
This commit is contained in:
parent
62415e2a95
commit
68a58f255a
13 changed files with 226 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue