mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-09 21:28:21 +00:00
Upgrade RustPython (#5192)
## Summary This PR upgrade RustPython to pull in the changes to `Arguments` (zip defaults with their identifiers) and all the renames to `CmpOp` and friends.
This commit is contained in:
parent
ddfdc3bb01
commit
36e01ad6eb
103 changed files with 1291 additions and 1165 deletions
|
@ -1,6 +1,6 @@
|
|||
use std::cmp::Ordering;
|
||||
|
||||
use rustpython_parser::ast::{self, Excepthandler, Stmt};
|
||||
use rustpython_parser::ast::{self, ExceptHandler, Stmt};
|
||||
|
||||
use crate::node::{NodeId, Nodes};
|
||||
|
||||
|
@ -57,7 +57,7 @@ fn alternatives(stmt: &Stmt) -> Vec<Vec<&Stmt>> {
|
|||
}) => vec![body.iter().chain(orelse.iter()).collect()]
|
||||
.into_iter()
|
||||
.chain(handlers.iter().map(|handler| {
|
||||
let Excepthandler::ExceptHandler(ast::ExcepthandlerExceptHandler { body, .. }) =
|
||||
let ExceptHandler::ExceptHandler(ast::ExceptHandlerExceptHandler { body, .. }) =
|
||||
handler;
|
||||
body.iter().collect()
|
||||
}))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue