Skip to content

Commit

Permalink
Rollup merge of rust-lang#89407 - pierwill:recommend-clean-E0514, r=d…
Browse files Browse the repository at this point in the history
…avidtwco

Recommend running `cargo clean` in E0514 output

This suggestion has worked for me before. Seems to me it could help others.
  • Loading branch information
Manishearth authored Oct 4, 2021
2 parents 4f15b55 + 7ed75ce commit fb04c4e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion compiler/rustc_metadata/src/locator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit fb04c4e

Please sign in to comment.