about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-06-04 13:21:28 +0200
committerGitHub <noreply@github.com>2023-06-04 13:21:28 +0200
commit0d6749c2afbe10d5b8fb1ecc24f9916663afd79b (patch)
tree1ab5ff41ec148d20302028fb6775073b197d9fde /compiler/rustc_codegen_llvm/src
parentcbc3e3f641b8e0f508e2a6dd0cb49bd64dfbb41c (diff)
parentd0298009924a3d37ddba89b346d1e419c9f1def3 (diff)
downloadrust-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