diff options
| author | Daniel Micay <danielmicay@gmail.com> | 2013-06-10 17:50:12 -0400 |
|---|---|---|
| committer | Daniel Micay <danielmicay@gmail.com> | 2013-06-11 14:06:12 -0400 |
| commit | 004816f4c6fa3902c69667761f52afb04cb2d62f (patch) | |
| tree | 7f974cb9391f138d75d5cfd2dafc0d1b421fcb68 /src/libsyntax/ext | |
| parent | 4f2f545ac2ce19034b138006e7ac76e502b3188b (diff) | |
| download | rust-004816f4c6fa3902c69667761f52afb04cb2d62f.tar.gz rust-004816f4c6fa3902c69667761f52afb04cb2d62f.zip | |
option: remove redundant old_iter impls
Diffstat (limited to 'src/libsyntax/ext')
| -rw-r--r-- | src/libsyntax/ext/expand.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libsyntax/ext/expand.rs b/src/libsyntax/ext/expand.rs index 1e1f411c050..96ea5ecf92c 100644 --- a/src/libsyntax/ext/expand.rs +++ b/src/libsyntax/ext/expand.rs @@ -384,7 +384,9 @@ pub fn new_name_finder() -> @Visitor<@mut ~[ast::ident]> { _ => () } // visit optional subpattern of pat_ident: - for inner.each |subpat: &@ast::pat| { (v.visit_pat)(*subpat, ident_accum, v) } + for inner.iter().advance |subpat: &@ast::pat| { + (v.visit_pat)(*subpat, ident_accum, v) + } } // use the default traversal for non-pat_idents _ => visit::visit_pat(p,ident_accum,v) |
