link to private item of proc-macro crate leads to compiler panic #123019
Labels
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
It seems that a link to a private item in a proc_macro crate can lead to compiler panicks.
Code
I have reduced my existing code as following:
The
base_crate
depends on the proc-macro cratepm_crate
. The later has only a single macro which itselfhas a link to a private item in the
pm_crate
in its docstring. This leads to a warning when generating documentationfor the
pm_crate
but the compiler panicks when runningcargo doc
orcargo rustdoc
for thebase_crate
.Have a look at the code right here.
Meta
rustc --version --verbose
:Error output
The text was updated successfully, but these errors were encountered: