mirror of
https://github.com/RustPython/Parser.git
synced 2025-07-19 11:05:45 +00:00
Fix compilation on redox
This commit is contained in:
parent
097b6a1889
commit
6708cef2a4
1 changed files with 1 additions and 1 deletions
|
@ -2042,7 +2042,7 @@ impl<O: OutputStream> Compiler<O> {
|
|||
|
||||
let mut compile_element = |element| {
|
||||
self.compile_expression(element).map_err(|e| {
|
||||
if matches!(e.error, CompileErrorType::InvalidStarExpr) {
|
||||
if let CompileErrorType::InvalidStarExpr = e.error {
|
||||
self.error(CompileErrorType::SyntaxError(
|
||||
"iterable unpacking cannot be used in comprehension".to_owned(),
|
||||
))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue