mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 22:34:45 +00:00
remove RuntimeError panics in canonicalization
This commit is contained in:
parent
e05bad3c72
commit
4947e2638c
4 changed files with 55 additions and 44 deletions
|
@ -25,7 +25,7 @@ pub enum Problem {
|
|||
|
||||
#[derive(Clone, Debug, PartialEq)]
|
||||
pub enum PrecedenceProblem {
|
||||
BothNonAssociative(Symbol, Located<BinOp>, Symbol, Located<BinOp>, Symbol),
|
||||
BothNonAssociative(Located<BinOp>, Located<BinOp>),
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, PartialEq)]
|
||||
|
@ -47,6 +47,8 @@ pub enum RuntimeError {
|
|||
region: Region,
|
||||
},
|
||||
InvalidPrecedence(PrecedenceProblem, Region),
|
||||
MalformedIdentifier(Box<str>, Region),
|
||||
MalformedClosure(Region),
|
||||
FloatOutsideRange(Box<str>),
|
||||
IntOutsideRange(Box<str>),
|
||||
InvalidHex(std::num::ParseIntError, Box<str>),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue