about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorJoe <joe@joedean.dev>2022-03-06 15:25:05 +0100
committerGitHub <noreply@github.com>2022-03-06 15:25:05 +0100
commit65ec4dd9047d5d9a47122648feba4b4996d33540 (patch)
treefb923e82810ea492ced37c66adb6d3697664707b /compiler/rustc_codegen_llvm/src
parentad0d1d71d3bc6f85f53d8ab2bf47daa7c8bc2c51 (diff)
downloadrust-65ec4dd9047d5d9a47122648feba4b4996d33540.tar.gz
rust-65ec4dd9047d5d9a47122648feba4b4996d33540.zip
Improved error message for failed bitcode load
"bc" is an unnecessary shorthand that obfuscates the compilation error
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
-rw-r--r--compiler/rustc_codegen_llvm/src/back/lto.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/src/back/lto.rs b/compiler/rustc_codegen_llvm/src/back/lto.rs
index 6afa649b6de..0f5b1c08ec2 100644
--- a/compiler/rustc_codegen_llvm/src/back/lto.rs
+++ b/compiler/rustc_codegen_llvm/src/back/lto.rs
@@ -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);