mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 00:03:43 +00:00
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 https://github.com/rust-lang/rust/issues/130678 more clear. It looks like not calling this function was just an oversight in https://github.com/rust-lang/rust/pull/76859, but clearly not a major one because it's taken us 4 years to notice. try-job: i686-msvc
This commit is contained in:
commit
d14c1c75ab
@ -844,7 +844,7 @@ impl ThinLTOKeysMap {
|
|||||||
llvm::LLVMRustComputeLTOCacheKey(rust_str, module.identifier, data.0);
|
llvm::LLVMRustComputeLTOCacheKey(rust_str, module.identifier, data.0);
|
||||||
})
|
})
|
||||||
.expect("Invalid ThinLTO module key");
|
.expect("Invalid ThinLTO module key");
|
||||||
(name.clone().into_string().unwrap(), key)
|
(module_name_to_str(name).to_string(), key)
|
||||||
})
|
})
|
||||||
.collect();
|
.collect();
|
||||||
Self { keys }
|
Self { keys }
|
||||||
|
Loading…
Reference in New Issue
Block a user