mirror of
https://github.com/RustPython/Parser.git
synced 2025-07-20 03:25:18 +00:00
Optimize the size of Instruction
This commit is contained in:
parent
281e955663
commit
48ca658ba0
3 changed files with 77 additions and 91 deletions
|
@ -37,6 +37,7 @@ pub enum CompileErrorType {
|
|||
InvalidFuturePlacement,
|
||||
InvalidFutureFeature(String),
|
||||
FunctionImportStar,
|
||||
TooManyStarUnpack,
|
||||
}
|
||||
|
||||
impl fmt::Display for CompileErrorType {
|
||||
|
@ -70,6 +71,9 @@ impl fmt::Display for CompileErrorType {
|
|||
CompileErrorType::FunctionImportStar => {
|
||||
write!(f, "import * only allowed at module level")
|
||||
}
|
||||
CompileErrorType::TooManyStarUnpack => {
|
||||
write!(f, "too many expressions in star-unpacking assignment")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue