The closure in question does not require Send/Sync impls, so it's OK to lose
them when we just capture data.0.
) -> Self {
let keys = iter::zip(modules, names)
.map(|(module, name)| {
- let key = build_string(|rust_str| {
- let _ = &data;
- unsafe {
- llvm::LLVMRustComputeLTOCacheKey(rust_str, module.identifier, data.0);
- }
+ let key = build_string(|rust_str| unsafe {
+ llvm::LLVMRustComputeLTOCacheKey(rust_str, module.identifier, data.0);
})
.expect("Invalid ThinLTO module key");
(name.clone().into_string().unwrap(), key)