Auto merge of #107932 - petrochenkov:onlyexport, r=jyn514
rustdoc: Skip doc link resolution for non-exported items
This commit is contained in:
commit
8be3c2bda6
5 changed files with 45 additions and 11 deletions
13
tests/rustdoc-ui/intra-doc/reachable-non-exported.rs
Normal file
13
tests/rustdoc-ui/intra-doc/reachable-non-exported.rs
Normal file
|
@ -0,0 +1,13 @@
|
|||
// The structure is reachable, but not exported, so rustdoc
|
||||
// doesn't attempt to request doc link resolutions on it.
|
||||
|
||||
// check-pass
|
||||
|
||||
mod private {
|
||||
/// [core::str::FromStr]
|
||||
pub struct ReachableButNotExported;
|
||||
}
|
||||
|
||||
pub fn foo() -> private::ReachableButNotExported {
|
||||
private::ReachableButNotExported
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue