Skip to content

feat(errors): guess toolchain typo in RustupError::ToolchainNotInstalled - #5055

Merged
rami3l merged 2 commits into
rust-lang:mainfrom
rami3l:feat/invalid-toolchain-guess
Sep 5, 2026
Merged

feat(errors): guess toolchain typo in RustupError::ToolchainNotInstalled#5055
rami3l merged 2 commits into
rust-lang:mainfrom
rami3l:feat/invalid-toolchain-guess

Conversation

@rami3l

@rami3l rami3l commented Sep 4, 2026

Copy link
Copy Markdown
Member

Closes #3317 by adapting a dead function to guess what the user meant when the toolchain name has a typo.

@rami3l
rami3l force-pushed the feat/invalid-toolchain-guess branch 7 times, most recently from c580801 to 92de4b1 Compare September 4, 2026 19:33
@rami3l
rami3l force-pushed the feat/invalid-toolchain-guess branch from 92de4b1 to 28de9f6 Compare September 4, 2026 19:44
Comment thread src/errors.rs Outdated
@rami3l
rami3l force-pushed the feat/invalid-toolchain-guess branch from 28de9f6 to 0033704 Compare September 4, 2026 20:18
@rami3l
rami3l added this pull request to the merge queue Sep 5, 2026
Merged via the queue into rust-lang:main with commit 9a634da Sep 5, 2026
60 of 62 checks passed
@rami3l
rami3l deleted the feat/invalid-toolchain-guess branch September 5, 2026 07:03
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.

rustup default invalid-toolchain reports a different error than rustup install

2 participants