-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-rustdoc-uiArea: Rustdoc UI (generated HTML)Area: Rustdoc UI (generated HTML)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.
Description
pub struct S;
impl S {
pub const C1: () = ();
pub fn foo1() {}
}
/// Comment
impl S {
pub const C2: () = ();
pub fn foo2() {}
}
/// Comment
impl S {
pub const C3: () = ();
pub fn foo3() {}
}
On the left of the image is the documentation for the three blocks.
- No comment for the impl block.
- The comment for the impl block is expanded.
- The comment for the impl block is collapsed.
On the right, there is what happens when the three impl blocks are collapsed.
- Collapsed as expected, with both constant and function hidden as expected.
- The comment is still visible though its
[-]
is hidden. The function is hidden as expected but the constant is not hidden. - The comment is hidden as expected. The function is hidden as expected but the constant is not hidden.
Metadata
Metadata
Assignees
Labels
A-rustdoc-uiArea: Rustdoc UI (generated HTML)Area: Rustdoc UI (generated HTML)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.