Create new lowlevels for refcounting

This commit is contained in:
Brian Carroll 2021-11-24 16:07:31 +00:00
parent c8278dcb1c
commit 6e5acadfea
7 changed files with 34 additions and 0 deletions

View file

@ -1008,6 +1008,10 @@ pub fn lowlevel_borrow_signature(arena: &Bump, op: LowLevel) -> &[bool] {
SetFromList => arena.alloc_slice_copy(&[owned]),
ExpectTrue => arena.alloc_slice_copy(&[irrelevant]),
RefCountGetPtr | RefCountInc | RefCountDec => {
unreachable!("Refcounting lowlevel calls are inserted *after* borrow checking");
}
}
}