migrate many for loops to foreach

This commit is contained in:
Daniel Micay 2013-08-01 03:16:42 -04:00
parent 5f59c46e0f
commit 1fc4db2d08
255 changed files with 1292 additions and 1294 deletions

View file

@ -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))
}
}