about summary refs log tree commit diff
path: root/compiler/rustc_span/src
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2021-03-08 15:32:41 -0800
committerJosh Stone <jistone@redhat.com>2021-03-26 09:32:31 -0700
commit72ebebe474aae7203a27fdc1296617edd01321f1 (patch)
treee3c47cd4378cc6370ad588318970b2118099fd2a /compiler/rustc_span/src
parent3b1f5e34620d6bfa32a127258e2c2d9f2f4d693b (diff)
Use iter::zip in compiler/
Diffstat (limited to 'compiler/rustc_span/src')
-rw-r--r--compiler/rustc_span/src/hygiene.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_span/src/hygiene.rs b/compiler/rustc_span/src/hygiene.rs
index eb5b7c4a74a..daecbe92250 100644
--- a/compiler/rustc_span/src/hygiene.rs
+++ b/compiler/rustc_span/src/hygiene.rs
@@ -413,7 +413,7 @@ pub fn update_dollar_crate_names(mut get_name: impl FnMut(SyntaxContext) -> Symb
     let names: Vec<_> =
         range_to_update.clone().map(|idx| get_name(SyntaxContext::from_u32(idx as u32))).collect();
     HygieneData::with(|data| {
-        range_to_update.zip(names.into_iter()).for_each(|(idx, name)| {
+        range_to_update.zip(names).for_each(|(idx, name)| {
             data.syntax_context_data[idx].dollar_crate_name = name;
         })
     })