-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
resolve: Fix doc links referring to other crates when documenting proc macro crates directly #107951
Conversation
r? @jackh726 (rustbot has picked a reviewer for you, use r? to override) |
extern crate proc_macro; | ||
use proc_macro::*; | ||
|
||
// has core/marker/trait.Unpin.html |
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.
I'm not sure what to write here,
// @has core/marker/trait.Unpin.html
doesn't work and reports
8: @has check failed
File does not exist 'core\\marker\\trait.Unpin.html'
// @has core/marker/trait.Unpin.html
because dependency crates like libcore are not documented in the test suite.
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.
You could instead add an aux crate to the test (with aux-build
and build-aux-docs
compiletest headers), and use a link to that instead? Or else perhaps just make it a rustdoc-ui
test with #![deny(rustdoc::broken_intra_doc_links)]
?
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.
Ok, moved to rustdoc-ui
.
…c macro crates directly
a47f5e1
to
efbf654
Compare
@bors r+ |
Rollup of 7 pull requests Successful merges: - rust-lang#104659 (reflow the stack size story) - rust-lang#106933 (Update documentation of select_nth_unstable and select_nth_unstable_by to state O(n^2) complexity) - rust-lang#107783 (rustdoc: simplify DOM for `.item-table`) - rust-lang#107951 (resolve: Fix doc links referring to other crates when documenting proc macro crates directly) - rust-lang#108130 ("Basic usage" is redundant for there is just one example) - rust-lang#108146 (rustdoc: hide `reference` methods in search index) - rust-lang#108189 (Fix some more `non_lifetime_binders` stuff with higher-ranked trait bounds) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Fixes #107950