migrate many for
loops to foreach
This commit is contained in:
parent
5f59c46e0f
commit
1fc4db2d08
255 changed files with 1292 additions and 1294 deletions
|
@ -535,7 +535,7 @@ pub fn new_name_finder() -> @Visitor<@mut ~[ast::ident]> {
|
|||
_ => ()
|
||||
}
|
||||
// visit optional subpattern of pat_ident:
|
||||
for inner.iter().advance |subpat: &@ast::pat| {
|
||||
foreach subpat in inner.iter() {
|
||||
(v.visit_pat)(*subpat, (ident_accum, v))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue