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 https://github.com/rust-lang/docs.rs/issues/1830#issuecomment-1244136700

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

0

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.

0
© 2022 pullanswer.com - All rights reserved.