Skip to content

Commit 5e344da

Browse files
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.
1 parent 662daee commit 5e344da

File tree

1 file changed

+2
-5
lines changed
  • compiler/rustc_codegen_llvm/src/back

1 file changed

+2
-5
lines changed

compiler/rustc_codegen_llvm/src/back/lto.rs

+2-5
Original file line numberDiff line numberDiff line change
@@ -906,11 +906,8 @@ impl ThinLTOKeysMap {
906906
) -> Self {
907907
let keys = iter::zip(modules, names)
908908
.map(|(module, name)| {
909-
let key = build_string(|rust_str| {
910-
let _ = &data;
911-
unsafe {
912-
llvm::LLVMRustComputeLTOCacheKey(rust_str, module.identifier, data.0);
913-
}
909+
let key = build_string(|rust_str| unsafe {
910+
llvm::LLVMRustComputeLTOCacheKey(rust_str, module.identifier, data.0);
914911
})
915912
.expect("Invalid ThinLTO module key");
916913
(name.clone().into_string().unwrap(), key)

0 commit comments

Comments
 (0)