Low-level to extract discriminant from a tag union

This commit is contained in:
Ayaz Hafiz 2022-10-04 16:17:05 -05:00
parent 7421485973
commit fd54cdfdd1
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
6 changed files with 41 additions and 4 deletions

View file

@ -1856,7 +1856,7 @@ impl<'a> LowLevelCall<'a> {
Eq | NotEq => self.eq_or_neq(backend),
BoxExpr | UnboxExpr => {
BoxExpr | UnboxExpr | TagDiscriminant => {
unreachable!("The {:?} operation is turned into mono Expr", self.lowlevel)
}