Skip to content

Let docs pass through with custom toolchains#2235

Merged
rbtcollins merged 1 commit intorust-lang:masterfrom
cuviper:docs-custom
Feb 24, 2020
Merged

Let docs pass through with custom toolchains#2235
rbtcollins merged 1 commit intorust-lang:masterfrom
cuviper:docs-custom

Conversation

@cuviper
Copy link
Copy Markdown
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
Copy Markdown
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