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:
parent
b2516121e2
commit
db1451c7ad
5 changed files with 24 additions and 12 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue