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,4 +1,4 @@
use ruff_python_parser::{parse_unchecked, Mode, ParseOptions};
use ruff_python_parser::{Mode, ParseOptions, parse_unchecked};
use ruff_python_trivia::CommentRanges;
use ruff_text_size::TextSize;

View file

@ -1,8 +1,8 @@
use insta::assert_debug_snapshot;
use ruff_python_parser::{parse_unchecked, Mode, ParseOptions};
use ruff_python_trivia::{lines_after, lines_before, CommentRanges, SimpleToken, SimpleTokenizer};
use ruff_python_parser::{Mode, ParseOptions, parse_unchecked};
use ruff_python_trivia::{BackwardsTokenizer, SimpleTokenKind};
use ruff_python_trivia::{CommentRanges, SimpleToken, SimpleTokenizer, lines_after, lines_before};
use ruff_text_size::{TextLen, TextRange, TextSize};
struct TokenizationTestCase {

View file

@ -1,4 +1,4 @@
use ruff_python_parser::{parse_module, ParseError};
use ruff_python_parser::{ParseError, parse_module};
use ruff_python_trivia::has_trailing_content;
use ruff_text_size::Ranged;