mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 23:04:49 +00:00
rename Unreachable -> Rethrow
This commit is contained in:
parent
9dd02ea090
commit
e005dbde4c
5 changed files with 15 additions and 20 deletions
|
@ -50,7 +50,7 @@ pub fn occuring_variables(stmt: &Stmt<'_>) -> (MutSet<Symbol>, MutSet<Symbol>) {
|
|||
result.insert(*symbol);
|
||||
}
|
||||
|
||||
Unreachable => {}
|
||||
Rethrow => {}
|
||||
|
||||
Inc(symbol, cont) | Dec(symbol, cont) => {
|
||||
result.insert(*symbol);
|
||||
|
@ -792,7 +792,7 @@ impl<'a> Context<'a> {
|
|||
}
|
||||
}
|
||||
|
||||
Unreachable => (stmt, MutSet::default()),
|
||||
Rethrow => (stmt, MutSet::default()),
|
||||
|
||||
Jump(j, xs) => {
|
||||
let empty = MutSet::default();
|
||||
|
@ -953,7 +953,7 @@ pub fn collect_stmt(
|
|||
vars
|
||||
}
|
||||
|
||||
Unreachable => vars,
|
||||
Rethrow => vars,
|
||||
|
||||
RuntimeError(_) => vars,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue