about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/errors.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-05-20 14:26:53 +0200
committerGitHub <noreply@github.com>2024-05-20 14:26:53 +0200
commit3a503157a065b615f9e2d051a9b0adb91dda4566 (patch)
tree78d4bb3415e32a60b8adaf4ffc311b0a72ad053a /compiler/rustc_codegen_llvm/src/errors.rs
parentd1da2387a43f4ab2d1bf365b038812873fa35567 (diff)
parent090dbb12f90a3d22183a7250ccad080a8e6d706c (diff)
downloadrust-3a503157a065b615f9e2d051a9b0adb91dda4566.tar.gz
rust-3a503157a065b615f9e2d051a9b0adb91dda4566.zip
Rollup merge of #125300 - compiler-errors:dont-strip-inherited-viz, r=fmease
rustdoc: Don't strip items with inherited visibility in `AliasedNonLocalStripper`

Enum variants return `None` in `Item::visibility`, which fails the comparison to `Some(Visibility::Public)`. This means that all enums in type aliases are being stripped, leading to this in the `rustc_middle` docs:

<img width="474" alt="image" src="https://github.com/rust-lang/rust/assets/3674314/83704d94-a571-4c28-acbd-ca51c4efd46e">

This regressed in https://github.com/rust-lang/rust/pull/124939#discussion_r1606130566.

This switches the `AliasedNonLocalStripper` to not strip items with `None` as their visibility.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions