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)
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue