diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-11-19 22:24:47 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-19 22:24:47 +0100 |
| commit | 841243f3199a0eeb1dd92b28f55286cddd15482c (patch) | |
| tree | 579a88e66843cea79244db15ac716c9e0d388275 /src/librustdoc | |
| parent | 022bb9c3bbb9d6e407d92f2b65db758ad6c5a84e (diff) | |
| parent | e9a0c3c98c5640070e15a3cb38860a7268c1dca2 (diff) | |
| download | rust-841243f3199a0eeb1dd92b28f55286cddd15482c.tar.gz rust-841243f3199a0eeb1dd92b28f55286cddd15482c.zip | |
Rollup merge of #133201 - nnethercote:rm-TokenKind-InvalidPrefix, r=compiler-errors
Remove `TokenKind::InvalidPrefix` It's not needed. Best reviewed one commit at a time. r? `@estebank`
Diffstat (limited to 'src/librustdoc')
| -rw-r--r-- | src/librustdoc/html/highlight.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/librustdoc/html/highlight.rs b/src/librustdoc/html/highlight.rs index 4def80764ea..29f6f92a6b2 100644 --- a/src/librustdoc/html/highlight.rs +++ b/src/librustdoc/html/highlight.rs @@ -861,10 +861,9 @@ impl<'src> Classifier<'src> { }, Some(c) => c, }, - TokenKind::RawIdent - | TokenKind::UnknownPrefix - | TokenKind::InvalidPrefix - | TokenKind::InvalidIdent => Class::Ident(self.new_span(before, text)), + TokenKind::RawIdent | TokenKind::UnknownPrefix | TokenKind::InvalidIdent => { + Class::Ident(self.new_span(before, text)) + } TokenKind::Lifetime { .. } | TokenKind::RawLifetime | TokenKind::UnknownPrefixLifetime => Class::Lifetime, |
