diff options
| author | pierwill <pierwill@users.noreply.github.com> | 2021-09-30 12:52:51 -0500 |
|---|---|---|
| committer | pierwill <pierwill@users.noreply.github.com> | 2021-09-30 12:52:51 -0500 |
| commit | 7ed75ce97c634ff63cba27d979c9574c86c85c1f (patch) | |
| tree | a1cc5ace0f780a7ea67159be9e1c6e943384e460 | |
| parent | 3e8f32e1c52ca493c862facb7a69e7c3f1f97a18 (diff) | |
| download | rust-7ed75ce97c634ff63cba27d979c9574c86c85c1f.tar.gz rust-7ed75ce97c634ff63cba27d979c9574c86c85c1f.zip | |
Recommend running `cargo clean` in E0514 output
| -rw-r--r-- | compiler/rustc_metadata/src/locator.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_metadata/src/locator.rs b/compiler/rustc_metadata/src/locator.rs index b6922e0d72a..80963c9658e 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(); |
