Have rustdoc create hyperlinks on items in compiled code examples #28954
Labels
C-feature-request
Category: A feature request, i.e: not implemented / a PR.
E-hard
Call for participation: Hard difficulty. Experience needed to fix: A lot.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
Currently we just generate HTML for the code examples by compiling markdown.
However, rustdoc could compile these examples with a plugin that emits resolved path information for each
ExprPath
and import being used. This part isn't too hard. Might actually be useful as a plugin to be run on independent rust programs.Then, we need to tweak the syntax highlighting bits so that these paths (those with a known span, that is), get linked appropriately.
cc @alexcrichton @steveklabnik
The text was updated successfully, but these errors were encountered: