Use iter::zip in compiler/
This commit is contained in:
parent
3b1f5e3462
commit
72ebebe474
87 changed files with 213 additions and 204 deletions
|
@ -24,6 +24,7 @@ use tracing::{debug, info};
|
|||
use std::ffi::{CStr, CString};
|
||||
use std::fs::File;
|
||||
use std::io;
|
||||
use std::iter;
|
||||
use std::path::Path;
|
||||
use std::ptr;
|
||||
use std::slice;
|
||||
|
@ -916,9 +917,7 @@ impl ThinLTOKeysMap {
|
|||
modules: &[llvm::ThinLTOModule],
|
||||
names: &[CString],
|
||||
) -> Self {
|
||||
let keys = modules
|
||||
.iter()
|
||||
.zip(names.iter())
|
||||
let keys = iter::zip(modules, names)
|
||||
.map(|(module, name)| {
|
||||
let key = build_string(|rust_str| unsafe {
|
||||
llvm::LLVMRustComputeLTOCacheKey(rust_str, module.identifier, data.0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue