File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
rust-analyzer/crates/parser/src Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -209,6 +209,14 @@ impl<'a> Converter<'a> {
209
209
}
210
210
LIFETIME_IDENT
211
211
}
212
+ rustc_lexer:: TokenKind :: UnknownPrefixLifetime => {
213
+ err = "Unknown lifetime prefix" ;
214
+ LIFETIME_IDENT
215
+ }
216
+ rustc_lexer:: TokenKind :: RawLifetimePrefix => {
217
+ err = "Unsupported raw lifetime" ;
218
+ LIFETIME_IDENT
219
+ }
212
220
213
221
rustc_lexer:: TokenKind :: Semi => T ! [ ; ] ,
214
222
rustc_lexer:: TokenKind :: Comma => T ! [ , ] ,
Original file line number Diff line number Diff line change @@ -1098,7 +1098,9 @@ fn next_space(tok: &TokenKind) -> SpaceState {
1098
1098
| TokenKind :: OpenDelim ( _)
1099
1099
| TokenKind :: CloseDelim ( _) => SpaceState :: Never ,
1100
1100
1101
- TokenKind :: Literal ( ..) | TokenKind :: Ident ( ..) | TokenKind :: Lifetime ( ..) => SpaceState :: Ident ,
1101
+ TokenKind :: Literal ( ..) | TokenKind :: Ident ( ..) | TokenKind :: Lifetime ( ..) => {
1102
+ SpaceState :: Ident
1103
+ }
1102
1104
1103
1105
_ => SpaceState :: Always ,
1104
1106
}
You can’t perform that action at this time.
0 commit comments