1
Fork 0

Tests for bad --extern library path and file

This commit is contained in:
Steven Tang 2022-11-22 17:09:47 +11:00
parent 395f2b84e6
commit 7169c7d105
No known key found for this signature in database
GPG key ID: 1597520C734BAE66
5 changed files with 41 additions and 1 deletions

View file

@ -1026,7 +1026,6 @@ impl CrateError {
None => String::new(),
Some(r) => format!(" which `{}` depends on", r.name),
};
// FIXME: There are no tests for CrateLocationUnknownType or LibFilenameForm
if !locator.crate_rejections.via_filename.is_empty() {
let mismatches = locator.crate_rejections.via_filename.iter();
for CrateMismatch { path, .. } in mismatches {