Closed
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).