Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not Found on rustc_hir/enum link #106117

Open
chansuke opened this issue Dec 24, 2022 · 1 comment
Open

Not Found on rustc_hir/enum link #106117

chansuke opened this issue Dec 24, 2022 · 1 comment
Labels
A-docs Area: documentation for any part of the project, including the compiler, standard library, and tools T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Comments

@chansuke
Copy link
Contributor

Location

https://doc.rust-lang.org/beta/nightly-rustc/rustc_hir/enum.ExprKind.html#variant.MethodCall
https://doc.rust-lang.org/beta/nightly-rustc/rustc_hir/enum.QPath.html

Summary

Not found on some of the method link under rustc_hir/enum page, for example, type_dependent_def_id on rustc_hir/enum.ExprKind

but it's available under

rustc_hir/hir/enum.ExprKind.

@chansuke chansuke added the A-docs Area: documentation for any part of the project, including the compiler, standard library, and tools label Dec 24, 2022
@clubby789
Copy link
Contributor

clubby789 commented Jan 4, 2023

This seems relevant to #74481 and #63944. As rustc_hir doesn't depend on rustc_middle it can't have links generated dynamically, so a relative path is used to get to the path above the crate root, then into rustc_middle.
This means that if the documentation is rendered on any other page the relative traversal is wrong.

EDIT: Actually, #94336 seems to be close to the specific issue here.

@rustbot label +T-rustdoc

@rustbot rustbot added the T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. label Jan 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-docs Area: documentation for any part of the project, including the compiler, standard library, and tools T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

3 participants