Skip to content

Commit 900b2e7

Browse files
committed
don't strip hidden items in AliasedNonLocalStripper
1 parent b507c75 commit 900b2e7

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/librustdoc/passes/strip_aliased_non_local.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,8 @@ impl DocFolder for NonLocalStripper<'_> {
4747
// FIXME(#125009): Not-local should probably consider same Cargo workspace
4848
if let Some(def_id) = i.def_id()
4949
&& !def_id.is_local()
50-
&& (i.is_doc_hidden()
51-
// Default to *not* stripping items with inherited visibility.
52-
|| i.visibility(self.tcx).is_some_and(|viz| viz != Visibility::Public))
50+
// Default to *not* stripping items with inherited visibility.
51+
&& i.visibility(self.tcx).is_some_and(|viz| viz != Visibility::Public)
5352
{
5453
return Some(strip_item(i));
5554
}

0 commit comments

Comments
 (0)