mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-02 15:32:06 +00:00
Rollup merge of #94672 - joedeandev:master, r=Dylan-DPC
Improved error message for failed bitcode load "bc" is an unnecessary shorthand that obfuscates the compilation error
This commit is contained in:
commit
0480a3254a
@ -317,7 +317,7 @@ fn fat_lto(
|
||||
info!("linking {:?}", name);
|
||||
let data = bc_decoded.data();
|
||||
linker.add(data).map_err(|()| {
|
||||
let msg = format!("failed to load bc of {:?}", name);
|
||||
let msg = format!("failed to load bitcode of module {:?}", name);
|
||||
write::llvm_err(diag_handler, &msg)
|
||||
})?;
|
||||
serialized_bitcode.push(bc_decoded);
|
||||
|
@ -1,6 +1,6 @@
|
||||
warning: Linking globals named 'foo': symbol multiply defined!
|
||||
|
||||
error: failed to load bc of "lto-duplicate-symbols2.lto_duplicate_symbols2.HASH-cgu.0.rcgu.o":
|
||||
error: failed to load bitcode of module "lto-duplicate-symbols2.lto_duplicate_symbols2.HASH-cgu.0.rcgu.o":
|
||||
|
||||
error: aborting due to previous error; 1 warning emitted
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user