about summary refs log tree commit diff
path: root/src/libsyntax/parse/parser.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-08-10 13:17:19 -0700
committerbors <bors@rust-lang.org>2013-08-10 13:17:19 -0700
commit8b9e1ce75a3e1416f2db80d30f65879fd902183f (patch)
tree07b97a6ad0d382272a978018c71c5220cece8237 /src/libsyntax/parse/parser.rs
parent2ba36ec62934c8b877766a6283633b6407c8d357 (diff)
parentc8a93efdae48b88bf594480705a5c0aac39c75e1 (diff)
downloadrust-8b9e1ce75a3e1416f2db80d30f65879fd902183f.tar.gz
rust-8b9e1ce75a3e1416f2db80d30f65879fd902183f.zip
auto merge of #8430 : erickt/rust/cleanup-iterators, r=erickt
This PR does a bunch of cleaning up of various APIs. The major one is that it merges `Iterator` and `IteratorUtil`, and renames functions like `transform` into `map`. I also merged `DoubleEndedIterator` and `DoubleEndedIteratorUtil`, as well as I renamed various .consume* functions to .move_iter(). This helps to implement part of #7887.
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
-rw-r--r--src/libsyntax/parse/parser.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs
index ddb0e3bfa68..d1916088a41 100644
--- a/src/libsyntax/parse/parser.rs
+++ b/src/libsyntax/parse/parser.rs
@@ -4310,7 +4310,7 @@ impl Parser {
                     seq_sep_trailing_disallowed(token::COMMA),
                     |p| p.parse_ty(false)
                 );
-                for ty in arg_tys.consume_iter() {
+                for ty in arg_tys.move_iter() {
                     args.push(ast::variant_arg {
                         ty: ty,
                         id: self.get_id(),