Improve error message for incomplete toolchains#4819
Open
Inconnu08 wants to merge 1 commit intorust-lang:mainfrom
Open
Improve error message for incomplete toolchains#4819Inconnu08 wants to merge 1 commit intorust-lang:mainfrom
Inconnu08 wants to merge 1 commit intorust-lang:mainfrom
Conversation
rami3l
reviewed
Apr 19, 2026
| .with_stderr(str![[r#" | ||
| error: toolchain 'nightly-[HOST_TRIPLE]' appears to be incomplete | ||
| help: this may happen if the toolchain installation was interrupted | ||
| help: run `rustup toolchain install nightly-[HOST_TRIPLE]` to reinstall |
Member
There was a problem hiding this comment.
Suggest adding an extra step to see if the suggestion really works.
Contributor
Author
There was a problem hiding this comment.
I just tried adding an extra step to verify the suggested reinstall command, but it exposed that rustup toolchain install nightly currently reports the toolchain as unchanged and does not repair the missing-manifest state.
Since that seems like a separate behavioral issue, I’ve kept this PR focused on improving the diagnostic message.
I’ll open a follow-up issue to track this recovery behavior.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Improve the error message shown when
rustupencounters a toolchain that is missing its manifest.Interrupted installations can leave a partially installed toolchain behind. Rustup already improves the recovery experience when reinstalling such toolchains (#4725), but users can still encounter a confusing "Missing manifest" error when interacting with the incomplete toolchain before retrying installation.
Related to #4724
Builds on the interrupted-install UX improvements from #4725