Problem
First of all, I just want to say that I really like the recent addition of topics to the rustup doc feature! While playing around with it, I noticed that if I run rustup doc fn, it brings up the documentation for the keyword fn. However, there's also a primitive fn and I can't figure out any way to open that documentation page specifically. Am I missing something or is it just not possible?
This would also, in theory, affect any other naming collisions, not just with keywords and primitives (e.g., if some Trait and Enum had the same name and scope).
Steps
- Run
rustup doc fn
- Observe that the
keyword.fn.html page is opened in a browser.
Possible Solution(s)
I'm not super jazzed about this idea but we could add flags for --keyword, --primitive, --macro, etc. to allow the user to tell rustup exactly what they're looking for. But it would only ever be helpful in these rare situations so I don't know if it's worth A) the effort and B) making the UI more complex. It's also worth mentioning that on the page for the keyword fn, the first thing the viewer will see in the left-hand side panel is a list of primitives. So it probably wouldn't be too much of an inconvenience for them to just find fn there and click on it.
Notes
Output of rustup --version: rustup 1.20.0 (2019-10-15)
Output of rustup show:
Default host: x86_64-apple-darwin
rustup home: /Users/collin.styles/.rustup
stable-x86_64-apple-darwin (default)
rustc 1.38.0 (625451e37 2019-09-23)
Problem
First of all, I just want to say that I really like the recent addition of topics to the
rustup docfeature! While playing around with it, I noticed that if I runrustup doc fn, it brings up the documentation for the keywordfn. However, there's also a primitivefnand I can't figure out any way to open that documentation page specifically. Am I missing something or is it just not possible?This would also, in theory, affect any other naming collisions, not just with keywords and primitives (e.g., if some
TraitandEnumhad the same name and scope).Steps
rustup doc fnkeyword.fn.htmlpage is opened in a browser.Possible Solution(s)
I'm not super jazzed about this idea but we could add flags for
--keyword,--primitive,--macro, etc. to allow the user to tellrustupexactly what they're looking for. But it would only ever be helpful in these rare situations so I don't know if it's worth A) the effort and B) making the UI more complex. It's also worth mentioning that on the page for the keywordfn, the first thing the viewer will see in the left-hand side panel is a list of primitives. So it probably wouldn't be too much of an inconvenience for them to just findfnthere and click on it.Notes
Output of
rustup --version:rustup 1.20.0 (2019-10-15)Output of
rustup show: