-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-visibilityArea: Visibility / privacyArea: Visibility / privacyC-bugCategory: This is a bug.Category: This is a bug.P-mediumMedium priorityMedium priorityT-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.regression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.Performance or correctness regression from stable to nightly.
Description
If I run cargo +nightly doc --document-private-items
on this code:
mod foo {
struct S;
impl S {
fn new() -> S { S }
}
}
then the output looks like this:
Note that the visibility is verbose – it says pub(in foo)
when it should show nothing (and used to show nothing).
This bug only occurs when the function is private and --document-private-items
is passed (of course, the docs are not generated without that flag).
Metadata
Metadata
Assignees
Labels
A-visibilityArea: Visibility / privacyArea: Visibility / privacyC-bugCategory: This is a bug.Category: This is a bug.P-mediumMedium priorityMedium priorityT-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.regression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.Performance or correctness regression from stable to nightly.