]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #89407 - pierwill:recommend-clean-E0514, r=davidtwco
authorJubilee <46493976+workingjubilee@users.noreply.github.com>
Mon, 4 Oct 2021 20:58:10 +0000 (13:58 -0700)
committerGitHub <noreply@github.com>
Mon, 4 Oct 2021 20:58:10 +0000 (13:58 -0700)
Recommend running `cargo clean` in E0514 output

This suggestion has worked for me before. Seems to me it could help others.

compiler/rustc_metadata/src/locator.rs

index b6922e0d72a065364c0e0444c70e961128ae5328..80963c9658e3d235ff325b06d9c5297a8d93a008 100644 (file)
@@ -1030,7 +1030,8 @@ impl CrateError {
                         add,
                     );
                     err.help(&format!(
-                        "please recompile that crate using this compiler ({})",
+                        "please recompile that crate using this compiler ({}) \
+                         (consider running `cargo clean` first)",
                         rustc_version(),
                     ));
                     let mismatches = locator.crate_rejections.via_version.iter();