Skip to content

Commit aeba0f5

Browse files
Fix tools
1 parent 19485a6 commit aeba0f5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/librustdoc/html/highlight.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -880,7 +880,7 @@ impl<'src> Classifier<'src> {
880880
| TokenKind::UnknownPrefix
881881
| TokenKind::InvalidPrefix
882882
| TokenKind::InvalidIdent => Class::Ident(self.new_span(before, text)),
883-
TokenKind::Lifetime { .. } => Class::Lifetime,
883+
TokenKind::Lifetime { .. } | TokenKind::RawLifetime => Class::Lifetime,
884884
TokenKind::Eof => panic!("Eof in advance"),
885885
};
886886
// Anything that didn't return above is the simple case where we the

src/tools/rustfmt/src/macros.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1072,7 +1072,7 @@ fn force_space_before(tok: &TokenKind) -> bool {
10721072
fn ident_like(tok: &Token) -> bool {
10731073
matches!(
10741074
tok.kind,
1075-
TokenKind::Ident(..) | TokenKind::Literal(..) | TokenKind::Lifetime(_)
1075+
TokenKind::Ident(..) | TokenKind::Literal(..) | TokenKind::Lifetime(..)
10761076
)
10771077
}
10781078

@@ -1097,7 +1097,7 @@ fn next_space(tok: &TokenKind) -> SpaceState {
10971097
| TokenKind::OpenDelim(_)
10981098
| TokenKind::CloseDelim(_) => SpaceState::Never,
10991099

1100-
TokenKind::Literal(..) | TokenKind::Ident(..) | TokenKind::Lifetime(_) => SpaceState::Ident,
1100+
TokenKind::Literal(..) | TokenKind::Ident(..) | TokenKind::Lifetime(..) => SpaceState::Ident,
11011101

11021102
_ => SpaceState::Always,
11031103
}

0 commit comments

Comments
 (0)