Skip to content

Commit fb04c4e

Browse files
authored
Rollup merge of rust-lang#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.
2 parents 4f15b55 + 7ed75ce commit fb04c4e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compiler/rustc_metadata/src/locator.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1030,7 +1030,8 @@ impl CrateError {
10301030
add,
10311031
);
10321032
err.help(&format!(
1033-
"please recompile that crate using this compiler ({})",
1033+
"please recompile that crate using this compiler ({}) \
1034+
(consider running `cargo clean` first)",
10341035
rustc_version(),
10351036
));
10361037
let mismatches = locator.crate_rejections.via_version.iter();

0 commit comments

Comments
 (0)