diff options
| author | Jubilee <46493976+workingjubilee@users.noreply.github.com> | 2021-10-04 13:58:10 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-04 13:58:10 -0700 |
| commit | 9381d7a898553d34c883c004c798030ce7fd3bd6 (patch) | |
| tree | 3a47673b552b4fb123a02acba9bd6eae1335e907 /compiler | |
| parent | 9e387cf27e6e26957f085e6da3b898539870ea2f (diff) | |
| parent | 7ed75ce97c634ff63cba27d979c9574c86c85c1f (diff) | |
| download | rust-9381d7a898553d34c883c004c798030ce7fd3bd6.tar.gz rust-9381d7a898553d34c883c004c798030ce7fd3bd6.zip | |
Rollup merge of #89407 - pierwill:recommend-clean-E0514, r=davidtwco
Recommend running `cargo clean` in E0514 output This suggestion has worked for me before. Seems to me it could help others.
Diffstat (limited to 'compiler')
| -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(); |
