Cross-crate re-export produces invalid rustdoc for impl Trait #62779
Labels
A-impl-trait
Area: `impl Trait`. Universally / existentially quantified anonymous types with static dispatch.
C-bug
Category: This is a bug.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
In a cross-crate reexport of an
impl Trait
-accepting function, rustdoc formats it in a wrong way which is not even valid Rust.Let
crate1
be:Let
crate2
be:If we generate docs for
crate2
, we get this definition for the (re-exported)accepts_impl
:I see some similarities with #60113 here.
Both issues still reproduce on stable 1.36.0 and nightly bc2e84c.
The text was updated successfully, but these errors were encountered: