Skip to content

Commit

Permalink
Rollup merge of rust-lang#53470 - bjorn3:warn_metadata_errors, r=alex…
Browse files Browse the repository at this point in the history
…crichton

Warn about metadata loader errors

Output when writing corrupting to libcore.rlib

```
warning: no metadata found: failed to read rlib metadata in '/Users/bjorn/Documents/rust_fork/build/x86_64-apple-darwin/stage1-std/x86_64-apple-darwin/release/deps/libcore-857d662d379c5d0c.rlib': File too small to be an archive

error[E0463]: can't find crate for `core`

error: aborting due to previous error
```

Fixes rust-lang#53381
  • Loading branch information
kennytm authored Sep 20, 2018
2 parents a791919 + de49681 commit c24d78f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc_metadata/locator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@ impl<'a> Context<'a> {
}
}
Err(err) => {
info!("no metadata found: {}", err);
warn!("no metadata found: {}", err);
continue;
}
};
Expand Down

0 comments on commit c24d78f

Please sign in to comment.