diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-06-04 13:21:28 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-04 13:21:28 +0200 |
| commit | 0d6749c2afbe10d5b8fb1ecc24f9916663afd79b (patch) | |
| tree | 1ab5ff41ec148d20302028fb6775073b197d9fde /compiler/rustc_codegen_llvm/src | |
| parent | cbc3e3f641b8e0f508e2a6dd0cb49bd64dfbb41c (diff) | |
| parent | d0298009924a3d37ddba89b346d1e419c9f1def3 (diff) | |
| download | rust-0d6749c2afbe10d5b8fb1ecc24f9916663afd79b.tar.gz rust-0d6749c2afbe10d5b8fb1ecc24f9916663afd79b.zip | |
Rollup merge of #112178 - GuillaumeGomez:fix-inline-private-intermediate, r=notriddle
Fix bug where private item with intermediate doc hidden re-export was not inlined
This fixes this bug:
```rust
mod private {
/// Original.
pub struct Bar3;
}
/// Hidden.
#[doc(hidden)]
pub use crate::private::Bar3;
/// Visible.
pub use self::Bar3 as Reexport;
```
In this case, `private::Bar3` should be inlined and renamed `Reexport` but instead we have:
```
pub use self::Bar3 as Reexport;
```
and no links.
There were actually two issues: the first one is that we forgot to check if the next intermediate re-export was doc hidden. The second was that we made the `#[doc(hidden)]` attribute inheritable, which shouldn't be possible.
r? `@notriddle`
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
