Eliminate Stmt::RuntimeError in favor of crash

This commit is contained in:
Ayaz Hafiz 2022-11-22 18:08:33 -06:00
parent a2f2a18a76
commit 803d7e30e3
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
14 changed files with 115 additions and 130 deletions

View file

@ -321,7 +321,7 @@ impl<'a> ParamMap<'a> {
}
Refcounting(_, _) => unreachable!("these have not been introduced yet"),
Ret(_) | Jump(_, _) | RuntimeError(_) | Crash(..) => {
Ret(_) | Jump(_, _) | Crash(..) => {
// these are terminal, do nothing
}
}
@ -832,7 +832,7 @@ impl<'a> BorrowInfState<'a> {
self.own_var(*msg);
}
Ret(_) | RuntimeError(_) => {
Ret(_) => {
// these are terminal, do nothing
}
}
@ -1006,7 +1006,7 @@ fn call_info_stmt<'a>(arena: &'a Bump, stmt: &Stmt<'a>, info: &mut CallInfo<'a>)
Refcounting(_, _) => unreachable!("these have not been introduced yet"),
Ret(_) | Jump(_, _) | RuntimeError(_) | Crash(..) => {
Ret(_) | Jump(_, _) | Crash(..) => {
// these are terminal, do nothing
}
}