mirror of
https://github.com/RustPython/Parser.git
synced 2025-07-15 09:05:25 +00:00
parent
4724cc63f7
commit
a1640e4aa1
7 changed files with 66 additions and 106 deletions
|
@ -1,8 +1,8 @@
|
|||
use std::{error::Error, fmt};
|
||||
use std::fmt;
|
||||
|
||||
pub type CodegenError = rustpython_compiler_core::BaseError<CodegenErrorType>;
|
||||
|
||||
#[derive(Debug)]
|
||||
#[derive(Debug, thiserror::Error)]
|
||||
#[non_exhaustive]
|
||||
pub enum CodegenErrorType {
|
||||
/// Invalid assignment, cannot store value in target.
|
||||
|
@ -79,5 +79,3 @@ impl fmt::Display for CodegenErrorType {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl Error for CodegenErrorType {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue