ICE with intra-doc link [value@Enum::Variant
]
#130591
Labels
A-intra-doc-links
Area: Intra-doc links, the ability to link to items in docs by name
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
I'm probably planning on working on this, I found it while I was working on #130587. The issue is that rustdoc looks up
Foo::X
in the value namespace, which returns a Ctor, not a Variant. Turns out giving doc comments unimpeded access to the rustc resolver might not be a perfect idea 🙃This seems slightly (but not very) tricky to fix, mainly an ironing out of semantics - do we pretend that
Foo::X
in the value namespace doesn't exist? Or do we let you reference it, but taking care not to say that there's a conflict betweenFoo::X
(the constructor) andFoo::X
(the variant) and that you have to disambiguate it?Code
Meta
rustdoc --version --verbose
(current master):Error output
Backtrace
The text was updated successfully, but these errors were encountered: