This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -879,7 +879,9 @@ impl<'src> Classifier<'src> {
879
879
| TokenKind :: UnknownPrefix
880
880
| TokenKind :: InvalidPrefix
881
881
| TokenKind :: InvalidIdent => Class :: Ident ( self . new_span ( before, text) ) ,
882
- TokenKind :: Lifetime { .. } => Class :: Lifetime ,
882
+ TokenKind :: Lifetime { .. }
883
+ | TokenKind :: RawLifetimePrefix
884
+ | TokenKind :: UnknownPrefixLifetime => Class :: Lifetime ,
883
885
TokenKind :: Eof => panic ! ( "Eof in advance" ) ,
884
886
} ;
885
887
// Anything that didn't return above is the simple case where we the
Original file line number Diff line number Diff line change @@ -1073,7 +1073,7 @@ fn force_space_before(tok: &TokenKind) -> bool {
1073
1073
fn ident_like ( tok : & Token ) -> bool {
1074
1074
matches ! (
1075
1075
tok. kind,
1076
- TokenKind :: Ident ( ..) | TokenKind :: Literal ( ..) | TokenKind :: Lifetime ( _ )
1076
+ TokenKind :: Ident ( ..) | TokenKind :: Literal ( ..) | TokenKind :: Lifetime ( .. )
1077
1077
)
1078
1078
}
1079
1079
@@ -1098,7 +1098,7 @@ 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 ( .. ) => SpaceState :: Ident ,
1102
1102
1103
1103
_ => SpaceState :: Always ,
1104
1104
}
You can’t perform that action at this time.
0 commit comments