about summary refs log tree commit diff
path: root/src/libsyntax/ext
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-07-03 08:16:54 -0700
committerbors <bors@rust-lang.org>2013-07-03 08:16:54 -0700
commit0c6fc46c030ab0515a052fa99c9e10c75cfc8184 (patch)
tree3840f27f53871ed20b17e82beac7ea9a402dce46 /src/libsyntax/ext
parent1cee9d4c38c628914cc72277854bd97f4f017225 (diff)
parentcdea73cf5b94784fdc910ab23d5d3455c868d247 (diff)
downloadrust-0c6fc46c030ab0515a052fa99c9e10c75cfc8184.tar.gz
rust-0c6fc46c030ab0515a052fa99c9e10c75cfc8184.zip
auto merge of #7566 : huonw/rust/vec-kill, r=cmr
The last remaining internal iterator in `vec` is `each_permutation`.
Diffstat (limited to 'src/libsyntax/ext')
-rw-r--r--src/libsyntax/ext/fmt.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libsyntax/ext/fmt.rs b/src/libsyntax/ext/fmt.rs
index 76073199f64..333570b6c9d 100644
--- a/src/libsyntax/ext/fmt.rs
+++ b/src/libsyntax/ext/fmt.rs
@@ -22,7 +22,6 @@ use ext::build::AstBuilder;
 
 use std::option;
 use std::unstable::extfmt::ct::*;
-use std::vec;
 use parse::token::{str_to_ident};
 
 pub fn expand_syntax_ext(cx: @ExtCtxt, sp: span, tts: &[ast::token_tree])
@@ -268,7 +267,7 @@ fn pieces_to_expr(cx: @ExtCtxt, sp: span,
        corresponding function in std::unstable::extfmt. Each function takes a
        buffer to insert data into along with the data being formatted. */
     let npieces = pieces.len();
-    do vec::consume(pieces) |i, pc| {
+    for pieces.consume_iter().enumerate().advance |(i, pc)| {
         match pc {
             /* Raw strings get appended via str::push_str */
             PieceString(s) => {