diff --git a/crates/compiler/parse/src/ast.rs b/crates/compiler/parse/src/ast.rs index 14c76d9fa4..1d602d845b 100644 --- a/crates/compiler/parse/src/ast.rs +++ b/crates/compiler/parse/src/ast.rs @@ -1761,7 +1761,8 @@ impl<'a> Malformed for Pattern<'a> { match self { Identifier(_) | Tag(_) | - OpaqueRef(_) => false, + OpaqueRef(_) | + Stmt(_) => false, Apply(func, args) => func.is_malformed() || args.iter().any(|arg| arg.is_malformed()), RecordDestructure(items) => items.iter().any(|item| item.is_malformed()), RequiredField(_, pat) => pat.is_malformed(), @@ -1784,8 +1785,6 @@ impl<'a> Malformed for Pattern<'a> { Malformed(_) | MalformedIdent(_, _) | QualifiedIdentifier { .. } => true, - - Stmt(_) => todo!(), } } }