Skip to content

Rustdoc search returns non working links related to #[doc(alias = "...")] #50311

New issue

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

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

Already on GitHub? # to your account

Closed
kumbayo opened this issue Apr 29, 2018 · 0 comments
Closed
Assignees
Labels
A-doc-alias Area: `#[doc(alias)]` T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Comments

@kumbayo
Copy link

kumbayo commented Apr 29, 2018

When searching for % https://doc.rust-lang.org/nightly/std/?search=%25
the search result shows std::ops::Rem::Rem
with a non working link to https://doc.rust-lang.org/nightly/std/ops/Rem/trait.Rem.html
(The same problem also happens for other aliases like ==, +=, ?, ...)

When searching for Rem https://doc.rust-lang.org/nightly/std/?search=Rem
the search result shows std::ops::Rem
with a working link to https://doc.rust-lang.org/nightly/std/ops/trait.Rem.html

Searching for aliases was implemented in #49757.
CC @GuillaumeGomez

Version reported by https://doc.rust-lang.org/nightly
Version 1.27.0-nightly (66363b2 2018-04-28)

@GuillaumeGomez GuillaumeGomez self-assigned this Apr 29, 2018
@GuillaumeGomez GuillaumeGomez added the T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. label Apr 29, 2018
kennytm added a commit to kennytm/rust that referenced this issue May 3, 2018
…ration, r=QuietMisdreavus

Fix invalid path generation in rustdoc search

Fixes rust-lang#50311.
@jyn514 jyn514 added the A-doc-alias Area: `#[doc(alias)]` label Sep 27, 2020
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
A-doc-alias Area: `#[doc(alias)]` 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