diff options
| author | tslil <tslil@posteo.de> | 2026-05-07 11:50:06 +0100 |
|---|---|---|
| committer | tslil <tslil@posteo.de> | 2026-05-07 13:34:30 +0100 |
| commit | 8d9c0e5868b2a7fa22080f814357dcda69a10057 (patch) | |
| tree | 5a49bfd66ea2e8d6ffeb425a7198bdb58fb3ec02 /src/checker_signature.rs | |
| parent | d14c744a1cff323f8a837ef620a93ee518c392a2 (diff) | |
add complete lifted sets
Diffstat (limited to 'src/checker_signature.rs')
| -rw-r--r-- | src/checker_signature.rs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/checker_signature.rs b/src/checker_signature.rs index 1ce8bc8..6acd271 100644 --- a/src/checker_signature.rs +++ b/src/checker_signature.rs @@ -336,7 +336,10 @@ impl CheckerState { ref field, element: ref inner, } => Some((field.clone(), *inner.clone())), - Element::Var(_) | Element::Project { .. } | Element::Case { .. } => None, + Element::ClaimedElement(_) + | Element::Var(_) + | Element::Project { .. } + | Element::Case { .. } => None, Element::Literal(_) | Element::Record(_) => panic!( "invariant violation: scrutinee is a non-variant value at variant set" ), @@ -344,7 +347,8 @@ impl CheckerState { let posit_equality_with = match &scrutinee { Element::Var(v) => Some(v.clone()), - Element::Inject { .. } + Element::ClaimedElement(_) + | Element::Inject { .. } | Element::Project { .. } | Element::Case { .. } | Element::Literal(_) |
