Skip to content

Commit 65ec4dd

Browse files
authored
Improved error message for failed bitcode load
"bc" is an unnecessary shorthand that obfuscates the compilation error
1 parent ad0d1d7 commit 65ec4dd

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_codegen_llvm/src/back

1 file changed

+1
-1
lines changed

compiler/rustc_codegen_llvm/src/back/lto.rs

Lines changed: 1 addition & 1 deletion
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);

0 commit comments

Comments
 (0)