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

Allow specifying rustup doc toolchain #1477

Closed
pickfire opened this issue Aug 8, 2018 · 0 comments
Closed

Allow specifying rustup doc toolchain #1477

pickfire opened this issue Aug 8, 2018 · 0 comments

Comments

@pickfire
Copy link
Contributor

pickfire commented Aug 8, 2018

As discussed in rust-lang/rust#53158. If we would like to open the nightly docs with stable as default toolchain. We need to:

$ rustup default nightly
$ rustup doc --std
$ rustup default stable

As well, part of my confusions is that I thought the following works.

  • rustup +nightly doc (cargo uses this so I thought it applies to rustup)
  • rustup doc --toolchain=nightly (rustup component add clippy preview --toolchain=nightly works though)

Or maybe there's a quick way to switch between stable and nightly docs if both toolchains are installed? Answered in rust-lang/rust#53158 (comment) by @cuviper

pickfire added a commit to pickfire/rustup.rs that referenced this issue Aug 8, 2018
@nrc nrc closed this as completed in #1478 Sep 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant