Auto merge of #113374 - GuillaumeGomez:private-to-public-path, r=notriddle,fmease

[rustdoc] If re-export is private, get the next item until a public one is found or expose the private item directly

Fixes #81141.

If we have:

```rust
use Private as Something;

pub fn foo() -> Something {}
```

Then `Something` will be replaced by `Private`.

r? `@notriddle`
This commit is contained in:
bors 2023-07-27 15:56:50 +00:00
commit eadcf646d0

Diff content is not available