Skip to content

Commit 6419aeb

Browse files
committed
Call module_name_to_str instead of just unwrapping
1 parent f48c99a commit 6419aeb

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)