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

Let docs pass through with custom toolchains #2235

Merged
merged 1 commit into from
Feb 24, 2020

Conversation

cuviper
Copy link
Member

@cuviper cuviper commented Feb 21, 2020

Following #2116, custom toolchains started to fail rustup doc, since
they can't list components to check if rust-docs is installed.

error: toolchain 'system' does not support components
error: caused by: invalid toolchain name: 'system'

Now custom toolchains just skip that component check, and it's up to the
user to have installed the documentation in their own way.

Following rust-lang#2116, custom toolchains started to fail `rustup doc`, since
they can't list components to check if `rust-docs` is installed.

    error: toolchain 'system' does not support components
    error: caused by: invalid toolchain name: 'system'

Now custom toolchains just skip that component check, and it's up to the
user to have installed the documentation in their own way.
@rbtcollins
Copy link
Contributor

I think this raises a point about our API: custom toolchains shouldn't let us list try to list components - that code should have forced a compile error in the first place to help us understand that this problem would have arisen.

@rbtcollins rbtcollins merged commit d65e9de into rust-lang:master Feb 24, 2020
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

Successfully merging this pull request may close these issues.

2 participants