Drop migration lint for Send/Sync bound in LTO backend

The closure in question does not require Send/Sync impls, so it's OK to lose
them when we just capture data.0.
This commit is contained in:
Mark Rousskov 2021-09-19 13:13:16 -04:00
parent 662daee658
commit 5e344da217

View File

@ -906,11 +906,8 @@ impl ThinLTOKeysMap {
) -> 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)