Constraining of list patterns

This commit is contained in:
Ayaz Hafiz 2022-10-31 12:15:21 -05:00
parent 7b87d0093e
commit 9ab5d0efb8
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
4 changed files with 67 additions and 6 deletions

View file

@ -1945,8 +1945,8 @@ fn to_pattern_report<'b>(
severity: Severity::RuntimeError,
}
}
PReason::TagArg { .. } | PReason::PatternGuard => {
unreachable!("I didn't think this could trigger. Please tell Folkert about it!")
PReason::TagArg { .. } | PReason::PatternGuard | PReason::ListElem => {
internal_error!("We didn't think this could trigger. Please tell us about it on Zulip if it does!")
}
},
}