Empty records are exhaustive

This commit is contained in:
ayazhafiz 2022-04-28 20:28:59 -04:00
parent 38fd9e8286
commit 5be9a001e3

View file

@ -117,8 +117,8 @@ impl Pattern {
| UnsupportedPattern(..) | UnsupportedPattern(..)
| MalformedPattern(..) | MalformedPattern(..)
| AbilityMemberSpecialization { .. } => true, | AbilityMemberSpecialization { .. } => true,
RecordDestructure { destructs, .. } => destructs.is_empty(),
AppliedTag { .. } AppliedTag { .. }
| RecordDestructure { .. }
| NumLiteral(..) | NumLiteral(..)
| IntLiteral(..) | IntLiteral(..)
| FloatLiteral(..) | FloatLiteral(..)