Hope to improve the error messages of cargo or rustup
I think this error message comes from rustup. It looks like it has already seen some improvement here
github.com/rust-lang/rustup
Improve error message for incomplete toolchains (#4819)
main ← Inconnu08:improve-missing-manifest-error
opened 01:58AM - 19 Apr 26 UTC
Inconnu08
+37 -1
Improve the error message shown when rustup encounters a toolchain that is mis…sing 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. - Added a test that removes the manifest file from an installed toolchain and verifies the improved error message Related to #4724 Builds on the interrupted-install UX improvements from #4725
- #[error("Missing manifest in toolchain '{}'", .0)]
+ #[error(
+ "missing manifest in toolchain '{0}'\n\
+ help: this may happen if the toolchain installation was interrupted\n\
+ help: try reinstalling or updating the toolchain"
+ )]
but rustup currently has a really slow release cycle (as far as I know there are people wanting to improve that), so it isn't in your installed version yet.
Nonetheless, I wonder if further improvement is needed. I assume in your case it wasn't clear to you that this is a rustup error, since I came up from a call to rustc (which does - with a rustup install of rustc - go through a rustup binary internally to select the version). If you'd agree that that's useful / needed (i.e. that "try updating the toolchain" wouldn't have helped you to know to invoke rustup update in your context) then feel free to open an issue on the rustup repo for this ^^
Discussion in the ATmosphere