mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-28 11:07:42 +00:00
Improve visibility&helpfulness of the 'found multiple rlibs' error
This commit is contained in:
parent
3120b09151
commit
d4c9fe7549
@ -48,7 +48,13 @@ fn third_party_crates() -> String {
|
|||||||
&& name.rsplit('.').next().map(|ext| ext.eq_ignore_ascii_case("rlib")) == Some(true)
|
&& name.rsplit('.').next().map(|ext| ext.eq_ignore_ascii_case("rlib")) == Some(true)
|
||||||
{
|
{
|
||||||
if let Some(old) = crates.insert(dep, path.clone()) {
|
if let Some(old) = crates.insert(dep, path.clone()) {
|
||||||
panic!("Found multiple rlibs for crate `{}`: `{:?}` and `{:?}", dep, old, path);
|
panic!(
|
||||||
|
"\n---------------------------------------------------\n\n \
|
||||||
|
Found multiple rlibs for crate `{}`: `{:?}` and `{:?}`.\n \
|
||||||
|
Probably, you need to run `cargo clean` before running tests again.\n \
|
||||||
|
\n---------------------------------------------------\n",
|
||||||
|
dep, old, path
|
||||||
|
);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user