Skip to content

Commit 7ed75ce

Browse files
committed
Recommend running cargo clean in E0514 output
1 parent 3e8f32e commit 7ed75ce

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)