Switch to Rust 2024 edition (#18129)

This commit is contained in:
Micha Reiser 2025-05-16 13:25:28 +02:00 committed by GitHub
parent e67b35743a
commit 9ae698fe30
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
1082 changed files with 4211 additions and 3300 deletions

View file

@ -1,5 +1,5 @@
use ruff_python_ast::comparable::ComparableExpr;
use ruff_python_parser::{parse_expression, ParseError};
use ruff_python_parser::{ParseError, parse_expression};
#[test]
fn concatenated_strings_compare_equal() -> Result<(), ParseError> {

View file

@ -1,5 +1,5 @@
use ruff_python_ast::identifier;
use ruff_python_parser::{parse_module, ParseError};
use ruff_python_parser::{ParseError, parse_module};
use ruff_text_size::{TextRange, TextSize};
#[test]

View file

@ -4,7 +4,7 @@ use insta::assert_snapshot;
use ruff_python_ast::visitor::source_order::{SourceOrderVisitor, TraversalSignal};
use ruff_python_ast::{AnyNodeRef, BoolOp, CmpOp, Operator, Singleton, UnaryOp};
use ruff_python_parser::{parse, Mode, ParseOptions};
use ruff_python_parser::{Mode, ParseOptions, parse};
#[test]
fn function_arguments() {

View file

@ -1,5 +1,5 @@
use ruff_python_ast::stmt_if::elif_else_range;
use ruff_python_parser::{parse_module, ParseError};
use ruff_python_parser::{ParseError, parse_module};
use ruff_text_size::TextSize;
#[test]

View file

@ -3,17 +3,16 @@ use std::fmt::{Debug, Write};
use insta::assert_snapshot;
use ruff_python_ast::visitor::{
walk_alias, walk_bytes_literal, walk_comprehension, walk_except_handler, walk_expr,
Visitor, walk_alias, walk_bytes_literal, walk_comprehension, walk_except_handler, walk_expr,
walk_f_string, walk_f_string_element, walk_keyword, walk_match_case, walk_parameter,
walk_parameters, walk_pattern, walk_stmt, walk_string_literal, walk_type_param, walk_with_item,
Visitor,
};
use ruff_python_ast::{
self as ast, Alias, AnyNodeRef, BoolOp, BytesLiteral, CmpOp, Comprehension, ExceptHandler,
Expr, FString, FStringElement, Keyword, MatchCase, Operator, Parameter, Parameters, Pattern,
Stmt, StringLiteral, TypeParam, UnaryOp, WithItem,
};
use ruff_python_parser::{parse, Mode, ParseOptions};
use ruff_python_parser::{Mode, ParseOptions, parse};
#[test]
fn function_arguments() {