1
Fork 0

rustdoc: Highlight edition-specific keywords correctly in code blocks, accounting for code block edition modifiers

This is a squash of these commits:
- Highlight edition-specific keywords correctly in code blocks,
accounting for code block edition modifiers
- Fix unit tests
- Revert changes to rustc_span::symbol to prepare for merge of #80272
- Use new Symbol::is_reserved API from #80272
- Remove unused import added by accident when merging
This commit is contained in:
ThePuzzlemaker 2020-12-20 01:34:33 -06:00
parent b2516121e2
commit db1451c7ad
No known key found for this signature in database
GPG key ID: 968CD9D71C9FBB6C
5 changed files with 24 additions and 12 deletions

View file

@ -4747,6 +4747,7 @@ fn item_macro(w: &mut Buffer, cx: &Context<'_>, it: &clean::Item, t: &clean::Mac
Some("macro"),
None,
None,
it.source.span().edition(),
))
});
document(w, cx, it, None)