about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorMark Rousskov <mark.simulacrum@gmail.com>2021-09-19 13:13:16 -0400
committerMark Rousskov <mark.simulacrum@gmail.com>2021-09-20 22:21:43 -0400
commit5e344da2170da48f6fe7ba28770b11b00796fa5f (patch)
treea74a840b32cd21d5adda687467ce1192a66c2c4d /compiler/rustc_codegen_llvm/src
parent662daee6582c84cdb7fc9b053bba4fb211a73299 (diff)
downloadrust-5e344da2170da48f6fe7ba28770b11b00796fa5f.tar.gz
rust-5e344da2170da48f6fe7ba28770b11b00796fa5f.zip
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.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
-rw-r--r--compiler/rustc_codegen_llvm/src/back/lto.rs7
1 files changed, 2 insertions, 5 deletions
diff --git a/compiler/rustc_codegen_llvm/src/back/lto.rs b/compiler/rustc_codegen_llvm/src/back/lto.rs
index fcb79c8332c..f612785e5a4 100644
--- a/compiler/rustc_codegen_llvm/src/back/lto.rs
+++ b/compiler/rustc_codegen_llvm/src/back/lto.rs
@@ -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)