Use iter::zip in compiler/
This commit is contained in:
parent
3b1f5e3462
commit
72ebebe474
87 changed files with 213 additions and 204 deletions
|
@ -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;
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue