-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
Enable "jump to def" feature on rustc docs #136589
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -830,7 +830,8 @@ impl Step for Rustc { | |
cargo.rustdocflag("--show-type-layout"); | ||
// FIXME: `--generate-link-to-definition` tries to resolve cfged out code | ||
// see https://github.com/rust-lang/rust/pull/122066#issuecomment-1983049222 | ||
Comment on lines
831
to
832
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is there an issue tracking getting rid of the cfged-out-code doc generating? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not that I know of. ""Normally"" we're supposed to do that already. The HIR visitor might provide it though (which is why it failed in the past), would be interesting to check why. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So it might be that the cfg doc is not necessary? Can you test that? If it is necessary, please create a tracking issue There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The cfg doc is necessary, otherwise I get:
Opened #136604. |
||
// cargo.rustdocflag("--generate-link-to-definition"); | ||
// If there is any bug, please comment out the next line. | ||
cargo.rustdocflag("--generate-link-to-definition"); | ||
|
||
compile::rustc_cargo(builder, &mut cargo, target, &compiler, &self.crates); | ||
cargo.arg("-Zskip-rustdoc-fingerprint"); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you add a comment here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure!