Enum cranelift_isle::error::Error
source · pub enum Error {
IoError {
error: Error,
context: String,
},
ParseError {
msg: String,
span: Span,
},
TypeError {
msg: String,
span: Span,
},
UnreachableError {
msg: String,
span: Span,
},
OverlapError {
msg: String,
rules: Vec<Span>,
},
ShadowedError {
shadowed: Vec<Span>,
mask: Span,
},
}
Expand description
Errors produced by ISLE.
Variants§
IoError
Fields
An I/O error.
ParseError
The input ISLE source has a parse error.
TypeError
The input ISLE source has a type error.
UnreachableError
The rule can never match any input.
OverlapError
Fields
The rules mentioned overlap in the input they accept.
ShadowedError
Fields
The rules can never match because another rule will always match first.