-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Closed
Labels
A-cross-crate-reexportsArea: Documentation that has been re-exported from a different crateArea: Documentation that has been re-exported from a different crateC-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.
Description
While rustdoc does indeed render generic parameters and where-clauses of cross-crate GATs in the .item-decl
of traits or in the section Required Associated Types for example, it doesn't do so in section Implementors on trait pages or section Trait Implementations on an implementor's page. I haven't exhaustively checked yet where precisely they're dropped and where they aren't.
Reproducer:
// a.rs
pub struct S;
pub trait Tr {
type F<T>
where
(T,): Clone;
}
impl Tr for S {
type F<T> = T
where
(T,): Clone;
}
// b.rs
pub use a::*;
rustc a.rs --crate-type=lib --edition=2021
rustdoc b.rs --crate-type=lib --edition=2021 --extern=a=liba.rlib
@rustbot claim
@rustbot label C-bug T-rustdoc A-cross-crate-reexports
Metadata
Metadata
Assignees
Labels
A-cross-crate-reexportsArea: Documentation that has been re-exported from a different crateArea: Documentation that has been re-exported from a different crateC-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.