Skip to content

[rustdoc] Correctly check that an item is not doc(hidden) with --generate-link-to-definition - #163268

Merged
rust-bors[bot] merged 2 commits into
rust-lang:mainfrom
GuillaumeGomez:jump-to-def-hidden
Sep 25, 2026
Merged

rust-bors[bot] merged 2 commits into
rust-lang:mainfrom
GuillaumeGomez:jump-to-def-hidden

Conversation

@GuillaumeGomez

Copy link
Copy Markdown
Member

Needed for #162808.

The problem was that we only checked the item itself, not any of its parents. Fixed by adding a loop.

r? @Urgau

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. T-rustdoc-frontend Relevant to the rustdoc-frontend team, which will review and decide on the web UI/UX output. labels Sep 24, 2026
@rustbot

This comment was marked as resolved.

Comment thread src/librustdoc/html/format.rs Outdated

@Urgau Urgau left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Urgau

Urgau commented Sep 24, 2026

Copy link
Copy Markdown
Member

@bors r+ rollup

@rust-bors

rust-bors Bot commented Sep 24, 2026

Copy link
Copy Markdown
Contributor

⌛ Commit 4de84d7 has been tentatively approved by Urgau. It will be fully approved once PR CI is successful.

@rust-bors

rust-bors Bot commented Sep 24, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 4de84d7 has been approved by Urgau

It is now in the queue for this repository.

@rust-bors rust-bors Bot added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Sep 24, 2026
rust-bors Bot pushed a commit that referenced this pull request Sep 25, 2026
Rollup of 7 pull requests

Successful merges:

 - #160068 (Preserve explicit register names in inline asm diagnostics)
 - #163239 (Fix applicability level for cfg suggestion)
 - #163025 (make `Complex` ABI GCC-compatible on sparc)
 - #163076 (powerpc64: don't pass unions in FPRs on ELFv1)
 - #163268 ([rustdoc] Correctly check that an item is not `doc(hidden)` with `--generate-link-to-definition`)
 - #163288 (Tweak Layout::from_size_align_unchecked safety comment)
 - #163292 (moving div_ceil() to associated items macro)
@rust-bors
rust-bors Bot merged commit 3246802 into rust-lang:main Sep 25, 2026
13 checks passed
@rustbot rustbot added this to the 1.100.0 milestone Sep 25, 2026
rust-bors Bot pushed a commit that referenced this pull request Sep 25, 2026
Rollup merge of #163268 - GuillaumeGomez:jump-to-def-hidden, r=Urgau

[rustdoc] Correctly check that an item is not `doc(hidden)` with `--generate-link-to-definition`

Needed for #162808.

The problem was that we only checked the item itself, not any of its parents. Fixed by adding a loop.

r? @Urgau
@GuillaumeGomez
GuillaumeGomez deleted the jump-to-def-hidden branch September 25, 2026 08:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. T-rustdoc-frontend Relevant to the rustdoc-frontend team, which will review and decide on the web UI/UX output.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants