1
Fork 0

Auto merge of #107932 - petrochenkov:onlyexport, r=jyn514

rustdoc: Skip doc link resolution for non-exported items
This commit is contained in:
bors 2023-03-24 21:10:51 +00:00
commit 8be3c2bda6
5 changed files with 45 additions and 11 deletions

View 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
}