Skip to content

Commit 9381d7a

Browse files
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.
2 parents 9e387cf + 7ed75ce commit 9381d7a

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)