remove unnecessary variant on runtime error
This commit is contained in:
parent
1e4d453f8b
commit
eca20870e1
2 changed files with 0 additions and 5 deletions
|
@ -600,7 +600,6 @@ fn fold_statement<'ast, T: Field>(
|
|||
}
|
||||
typed::RuntimeError::SelectRangeCheck => zir::RuntimeError::SelectRangeCheck,
|
||||
typed::RuntimeError::DivisionByZero => zir::RuntimeError::DivisionByZero,
|
||||
_ => unreachable!(),
|
||||
};
|
||||
vec![zir::ZirStatement::Assertion(e, error)]
|
||||
}
|
||||
|
|
|
@ -570,7 +570,6 @@ impl<'ast, T: fmt::Display> fmt::Display for TypedAssignee<'ast, T> {
|
|||
#[derive(Debug, Clone, PartialEq, Hash, Eq, PartialOrd, Ord)]
|
||||
pub enum RuntimeError {
|
||||
SourceAssertion(SourceMetadata),
|
||||
SourceAssemblyConstraint(SourceMetadata),
|
||||
SelectRangeCheck,
|
||||
DivisionByZero,
|
||||
}
|
||||
|
@ -581,9 +580,6 @@ impl fmt::Display for RuntimeError {
|
|||
RuntimeError::SourceAssertion(metadata) => {
|
||||
write!(f, "Assertion failed at {}", metadata)
|
||||
}
|
||||
RuntimeError::SourceAssemblyConstraint(metadata) => {
|
||||
write!(f, "Unsatisfied constraint at {}", metadata)
|
||||
}
|
||||
RuntimeError::SelectRangeCheck => write!(f, "Range check on array access"),
|
||||
RuntimeError::DivisionByZero => write!(f, "Division by zero"),
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue