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:
Charlie Marsh 2023-06-19 17:09:53 -04:00 committed by GitHub
parent ddfdc3bb01
commit 36e01ad6eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
103 changed files with 1291 additions and 1165 deletions

View file

@ -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()
}))