mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-04 18:58:26 +00:00
Switch to Rust 2024 edition (#18129)
This commit is contained in:
parent
e67b35743a
commit
9ae698fe30
1082 changed files with 4211 additions and 3300 deletions
|
@ -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> {
|
||||
|
|
|
@ -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]
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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]
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue