lowlevel isUnique

This commit is contained in:
J.Teeuwissen 2023-04-26 17:23:10 +02:00
parent 2435bdb41a
commit ed46a1f2cb
No known key found for this signature in database
GPG key ID: DB5F7A1ED8D478AD
8 changed files with 28 additions and 1 deletions

View file

@ -1031,7 +1031,7 @@ pub fn lowlevel_borrow_signature(arena: &Bump, op: LowLevel) -> &[Ownership] {
unreachable!("These lowlevel operations are turned into mono Expr's")
}
PtrCast | RefCountInc | RefCountDec => {
PtrCast | RefCountInc | RefCountDec | RefCountIsUnique => {
unreachable!("Only inserted *after* borrow checking: {:?}", op);
}
}