Skip to content

Commit 0480a32

Browse files
authored
Rollup merge of rust-lang#94672 - joedeandev:master, r=Dylan-DPC
Improved error message for failed bitcode load "bc" is an unnecessary shorthand that obfuscates the compilation error
2 parents e8f38a0 + 0e604a7 commit 0480a32

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler/rustc_codegen_llvm/src/back/lto.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ fn fat_lto(
317317
info!("linking {:?}", name);
318318
let data = bc_decoded.data();
319319
linker.add(data).map_err(|()| {
320-
let msg = format!("failed to load bc of {:?}", name);
320+
let msg = format!("failed to load bitcode of module {:?}", name);
321321
write::llvm_err(diag_handler, &msg)
322322
})?;
323323
serialized_bitcode.push(bc_decoded);
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
warning: Linking globals named 'foo': symbol multiply defined!
22

3-
error: failed to load bc of "lto-duplicate-symbols2.lto_duplicate_symbols2.HASH-cgu.0.rcgu.o":
3+
error: failed to load bitcode of module "lto-duplicate-symbols2.lto_duplicate_symbols2.HASH-cgu.0.rcgu.o":
44

55
error: aborting due to previous error; 1 warning emitted
66

0 commit comments

Comments
 (0)