mirror of
https://github.com/RustPython/Parser.git
synced 2025-07-19 19:15:43 +00:00
integrate CodegenError to compiler-core::Error
This commit is contained in:
parent
9d67b944cf
commit
1192a11d39
4 changed files with 24 additions and 22 deletions
|
@ -11,7 +11,7 @@ pub use rustpython_codegen::compile::CompileOpts;
|
|||
pub use rustpython_compiler_core::Mode;
|
||||
|
||||
#[derive(Debug, thiserror::Error)]
|
||||
pub enum CodegenErrorType {
|
||||
pub enum CompileErrorType {
|
||||
#[error(transparent)]
|
||||
Compile(#[from] rustpython_codegen::error::CodegenErrorType),
|
||||
#[error(transparent)]
|
||||
|
@ -20,7 +20,7 @@ pub enum CodegenErrorType {
|
|||
|
||||
#[derive(Debug, thiserror::Error)]
|
||||
pub struct CompileError {
|
||||
pub error: CodegenErrorType,
|
||||
pub error: CompileErrorType,
|
||||
pub source_path: String,
|
||||
pub location: Location,
|
||||
pub statement: Option<String>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue