mirror of
https://github.com/astral-sh/ruff
synced 2026-01-10 08:04:26 -05:00
Upgrade Rust toolchain to 1.83 (#14677)
This commit is contained in:
@@ -49,7 +49,7 @@ const MAPPING_PATTERN_START_SET: TokenSet = TokenSet::new([
|
||||
])
|
||||
.union(LITERAL_PATTERN_START_SET);
|
||||
|
||||
impl<'src> Parser<'src> {
|
||||
impl Parser<'_> {
|
||||
/// Returns `true` if the current token is a valid start of a pattern.
|
||||
pub(super) fn at_pattern_start(&self) -> bool {
|
||||
self.at_ts(PATTERN_START_SET) || self.at_soft_keyword()
|
||||
|
||||
Reference in New Issue
Block a user