Skip to content

Commit 6506956

Browse files
committed
Revert rust-analyzer use of the new field in pattern
1 parent 3896a9f commit 6506956

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/tools/rust-analyzer/crates/parser/src/lexed_str.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,8 @@ impl<'a> Converter<'a> {
255255
return;
256256
}
257257

258-
rustc_lexer::TokenKind::Lifetime { invalid } => {
259-
if *invalid {
258+
rustc_lexer::TokenKind::Lifetime { starts_with_number } => {
259+
if *starts_with_number {
260260
errors.push("Lifetime name contains invalid characters".into());
261261
}
262262
LIFETIME_IDENT

0 commit comments

Comments
 (0)