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:
parent
662daee658
commit
5e344da217
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user