std: remove each[i]_mut functions, in favour of iterators.
This commit is contained in:
parent
f661a15b2b
commit
54d914a9a9
12 changed files with 32 additions and 69 deletions
|
@ -22,6 +22,7 @@ use parse::parser::Parser;
|
|||
use parse::token::{Token, EOF, to_str, nonterminal, get_ident_interner, ident_to_str};
|
||||
use parse::token;
|
||||
|
||||
use core::iterator::IteratorUtil;
|
||||
use core::hashmap::HashMap;
|
||||
use core::str;
|
||||
use core::uint;
|
||||
|
@ -358,7 +359,7 @@ pub fn parse(
|
|||
if tok == EOF {
|
||||
if eof_eis.len() == 1u {
|
||||
let mut v = ~[];
|
||||
for vec::each_mut(eof_eis[0u].matches) |dv| {
|
||||
for eof_eis[0u].matches.mut_iter().advance |dv| {
|
||||
v.push(dv.pop());
|
||||
}
|
||||
return success(nameize(sess, ms, v));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue