-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
C-bugCategory: This is a bug.Category: This is a bug.T-dev-toolsRelevant to the dev-tools subteam, which will review and decide on the PR/issue.Relevant to the dev-tools subteam, which will review and decide on the PR/issue.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 docs for fn Foo
are generated in the following they are not linked anywhere and can’t be found by using the search. fn Bar
is linked on the other hand.
mod internal {
pub struct Foo {
_val: ()
}
#[allow(non_snake_case)]
pub fn Foo() -> Foo {
Foo { _val: () }
}
}
pub struct Bar {
_val: ()
}
#[allow(non_snake_case)]
pub fn Bar() -> Bar {
Bar { _val: () }
}
pub use internal::Foo;
fn main() {
let _ = Foo();
let _ = Bar();
}
On the other hand, when using pub use internal::*
it works like expected. This is inconsistent as the function is clearly accessible from fn main
in both cases.
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.T-dev-toolsRelevant to the dev-tools subteam, which will review and decide on the PR/issue.Relevant to the dev-tools subteam, which will review and decide on the PR/issue.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.