Skip to content

Two lines of 'error:' when a rust-toolchain file is invalid #2552

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

Closed
jyn514 opened this issue Nov 13, 2020 · 1 comment · Fixed by #2613
Closed

Two lines of 'error:' when a rust-toolchain file is invalid #2552

jyn514 opened this issue Nov 13, 2020 · 1 comment · Fixed by #2613

Comments

@jyn514
Copy link
Member

jyn514 commented Nov 13, 2020

This is not the same as #2541 - this is two lines, not error: twice in one line.

Problem

$ cargo check
error: invalid channel name 'use x.py instead: https://rustc-dev-guide.rust-lang.org/building/how-to-build-and-run.html' in '/home/joshua/rustc/rust-toolchain'
error: caused by: invalid toolchain name: 'use x.py instead: https://rustc-dev-guide.rust-lang.org/building/how-to-build-and-run.html'

This is the same error twice, there's no need for both.

Steps

  1. echo invalid-toolchain > rust-toolchain
  2. cargo check

Possible Solution(s)

Notes

Output of rustup --version: rustup 1.22.1 (b01adbbc3 2020-07-08)
Output of rustup show:

Default host: x86_64-unknown-linux-gnu
rustup home:  /home/joshua/.local/lib/rustup

... about 20 toolchains ...

active toolchain
----------------

(error: invalid channel name 'use x.py instead: https://rustc-dev-guide.rust-lang.org/building/how-to-build-and-run.html' in '/home/joshua/rustc/rust-toolchain', invalid toolchain name: 'use x.py instead: https://rustc-dev-guide.rust-lang.org/building/how-to-build-and-run.html')
@jyn514 jyn514 added the bug label Nov 13, 2020
@jyn514
Copy link
Member Author

jyn514 commented Nov 13, 2020

See also rust-lang/rust#79021, which means people will see this error a lot. That PR was closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants