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

enable "go to exact" for rustdoc #102590

Open
Emilgardis opened this issue Oct 2, 2022 · 1 comment
Open

enable "go to exact" for rustdoc #102590

Emilgardis opened this issue Oct 2, 2022 · 1 comment
Labels
C-feature-request Category: A feature request, i.e: not implemented / a PR. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Comments

@Emilgardis
Copy link
Contributor

Emilgardis commented Oct 2, 2022

I would really like something like go_to_exact in rustdoc that we could add for the :: redirects. I don't think we can just add go_to_first always because e.g. https://docs.rs/tokio?search=tokio::span&go_to_first=true goes to the tokio::spawn docs.

Originally posted by @Nemo157 in rust-lang/docs.rs#1830 (comment)

Add a query go_to_exact which will only use go_to_first if the match is "exact", what "exact" means should be determined.

@Nemo157
Copy link
Member

Nemo157 commented Oct 2, 2022

There was also some related discussion on zulip: https://rust-lang.zulipchat.com/#narrow/stream/266220-rustdoc/topic/go_to_first.3Dmaybe, the suggestions there are to have it as a tri-state on the existing flag like go_to_first=if-exact rather than a separate parameter.

@Emilgardis Emilgardis changed the title go_to_exact for rustdoc enable "go to exact" for rustdoc Oct 2, 2022
@GuillaumeGomez GuillaumeGomez added T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. C-feature-request Category: A feature request, i.e: not implemented / a PR. labels Oct 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-feature-request Category: A feature request, i.e: not implemented / a PR. 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