From 6419aeb1ec71fab8a6d47a0f14a8391cecab5f39 Mon Sep 17 00:00:00 2001 From: Ben Kimock Date: Sat, 21 Sep 2024 18:42:51 -0400 Subject: [PATCH] Call module_name_to_str instead of just unwrapping --- compiler/rustc_codegen_llvm/src/back/lto.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/rustc_codegen_llvm/src/back/lto.rs b/compiler/rustc_codegen_llvm/src/back/lto.rs index 66479ad7f34..90a3da307d5 100644 --- a/compiler/rustc_codegen_llvm/src/back/lto.rs +++ b/compiler/rustc_codegen_llvm/src/back/lto.rs @@ -844,7 +844,7 @@ fn from_thin_lto_modules( llvm::LLVMRustComputeLTOCacheKey(rust_str, module.identifier, data.0); }) .expect("Invalid ThinLTO module key"); - (name.clone().into_string().unwrap(), key) + (module_name_to_str(name).to_string(), key) }) .collect(); Self { keys }