Skip to content

Commit d14c1c7

Browse files
committed
Auto merge of #130680 - saethlin:module-name-to-str, r=jieyouxu
Call module_name_to_str instead of just unwrapping This makes the ICE message in #130678 more clear. It looks like not calling this function was just an oversight in #76859, but clearly not a major one because it's taken us 4 years to notice. try-job: i686-msvc
2 parents 6c6d210 + 6419aeb commit d14c1c7

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

Diff for: compiler/rustc_codegen_llvm/src/back/lto.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -844,7 +844,7 @@ impl ThinLTOKeysMap {
844844
llvm::LLVMRustComputeLTOCacheKey(rust_str, module.identifier, data.0);
845845
})
846846
.expect("Invalid ThinLTO module key");
847-
(name.clone().into_string().unwrap(), key)
847+
(module_name_to_str(name).to_string(), key)
848848
})
849849
.collect();
850850
Self { keys }

0 commit comments

Comments
 (0)