pub enum AnalysisError {
UnknownFunction {
name: String,
},
UnknownTemplate {
name: String,
},
FailedToLiftFunction {
name: String,
},
FailedToLiftTemplate {
name: String,
},
UnknownFile {
file_id: FileID,
},
InvalidLocation {
file_id: FileID,
file_location: FileLocation,
},
}Expand description
Errors returned by the analysis context.
Variants§
UnknownFunction
This function has no corresponding AST.
UnknownTemplate
This template has no corresponding AST.
FailedToLiftFunction
This function has an AST, but we failed to lift it to a corresponding CFG.
FailedToLiftTemplate
This template has an AST, but we failed to lift it to a corresponding CFG.
UnknownFile
The file ID does not correspond to a known file.
InvalidLocation
The location does not exist in the file with the given ID.
Trait Implementations§
Source§impl Debug for AnalysisError
impl Debug for AnalysisError
Source§impl Display for AnalysisError
impl Display for AnalysisError
Source§impl Error for AnalysisError
impl Error for AnalysisError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for AnalysisError
impl RefUnwindSafe for AnalysisError
impl Send for AnalysisError
impl Sync for AnalysisError
impl Unpin for AnalysisError
impl UnwindSafe for AnalysisError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more