-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Cross-crate re-export produces invalid rustdoc for impl Trait #62779
Copy link
Copy link
Closed
Labels
A-impl-traitArea: `impl Trait`. Universally / existentially quantified anonymous types with static dispatch.Area: `impl Trait`. Universally / existentially quantified anonymous types with static dispatch.C-bugCategory: This is a bug.Category: This is a bug.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
A-impl-traitArea: `impl Trait`. Universally / existentially quantified anonymous types with static dispatch.Area: `impl Trait`. Universally / existentially quantified anonymous types with static dispatch.C-bugCategory: This is a bug.Category: This is a bug.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
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
crate1be:Let
crate2be: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.