From 7ed75ce97c634ff63cba27d979c9574c86c85c1f Mon Sep 17 00:00:00 2001 From: pierwill Date: Thu, 30 Sep 2021 12:52:51 -0500 Subject: [PATCH] Recommend running `cargo clean` in E0514 output --- compiler/rustc_metadata/src/locator.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compiler/rustc_metadata/src/locator.rs b/compiler/rustc_metadata/src/locator.rs index b6922e0d72a06..80963c9658e3d 100644 --- a/compiler/rustc_metadata/src/locator.rs +++ b/compiler/rustc_metadata/src/locator.rs @@ -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();