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> {
879879 | TokenKind :: UnknownPrefix
880880 | TokenKind :: InvalidPrefix
881881 | 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 ,
883885 TokenKind :: Eof => panic ! ( "Eof in advance" ) ,
884886 } ;
885887 // 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 {
10731073fn ident_like ( tok : & Token ) -> bool {
10741074 matches ! (
10751075 tok. kind,
1076- TokenKind :: Ident ( ..) | TokenKind :: Literal ( ..) | TokenKind :: Lifetime ( _ )
1076+ TokenKind :: Ident ( ..) | TokenKind :: Literal ( ..) | TokenKind :: Lifetime ( .. )
10771077 )
10781078}
10791079
@@ -1098,7 +1098,7 @@ fn next_space(tok: &TokenKind) -> SpaceState {
10981098 | TokenKind :: OpenDelim ( _)
10991099 | TokenKind :: CloseDelim ( _) => SpaceState :: Never ,
11001100
1101- TokenKind :: Literal ( ..) | TokenKind :: Ident ( ..) | TokenKind :: Lifetime ( _ ) => SpaceState :: Ident ,
1101+ TokenKind :: Literal ( ..) | TokenKind :: Ident ( ..) | TokenKind :: Lifetime ( .. ) => SpaceState :: Ident ,
11021102
11031103 _ => SpaceState :: Always ,
11041104 }
You can’t perform that action at this time.
0 commit comments