-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
rustdoc: Fix redirect pages for renamed reexports #34245
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
👍 |
if let ItemType::Module = ty { | ||
write!(url, "{}/index.html", target_name).unwrap(); | ||
} else { | ||
write!(url, "{}.{}.html", ty.to_static_str(), target_name).unwrap(); |
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.
This seems duplicated with item_path
, perhaps the two could be refactored to share code?
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.
Done.
We need to use the name of the target not the name of the current item when creating the link.
43eaa4a
to
0c742d2
Compare
⌛ Testing commit 0c742d2 with merge f46ed6f... |
💔 Test failed - auto-win-gnu-32-opt-rustbuild |
@bors: retry
On Tue, Jun 14, 2016 at 8:58 PM, bors [email protected] wrote:
|
rustdoc: Fix redirect pages for renamed reexports We need to use the name of the target not the name of the current item when creating the link. An example in `std` is [`std::sys::ext`](https://doc.rust-lang.org/nightly/std/sys/ext/index.html).
We need to use the name of the target not the name of the current item
when creating the link.
An example in
std
isstd::sys::ext
.