vec: remove BaseIter implementation
I removed the `static-method-test.rs` test because it was heavily based on `BaseIter` and there are plenty of other more complex uses of static methods anyway.
This commit is contained in:
parent
c9342663df
commit
d2e9912aea
181 changed files with 796 additions and 876 deletions
|
@ -2746,7 +2746,7 @@ impl Parser {
|
|||
} = self.parse_items_and_view_items(first_item_attrs,
|
||||
false, false);
|
||||
|
||||
for items.each |item| {
|
||||
for items.iter().advance |item| {
|
||||
let decl = @spanned(item.span.lo, item.span.hi, decl_item(*item));
|
||||
stmts.push(@spanned(item.span.lo, item.span.hi,
|
||||
stmt_decl(decl, self.get_id())));
|
||||
|
@ -3356,7 +3356,8 @@ impl Parser {
|
|||
is_tuple_like = false;
|
||||
fields = ~[];
|
||||
while *self.token != token::RBRACE {
|
||||
for self.parse_struct_decl_field().each |struct_field| {
|
||||
let r = self.parse_struct_decl_field();
|
||||
for r.iter().advance |struct_field| {
|
||||
fields.push(*struct_field)
|
||||
}
|
||||
}
|
||||
|
@ -3825,7 +3826,8 @@ impl Parser {
|
|||
fn parse_struct_def(&self) -> @struct_def {
|
||||
let mut fields: ~[@struct_field] = ~[];
|
||||
while *self.token != token::RBRACE {
|
||||
for self.parse_struct_decl_field().each |struct_field| {
|
||||
let r = self.parse_struct_decl_field();
|
||||
for r.iter().advance |struct_field| {
|
||||
fields.push(*struct_field);
|
||||
}
|
||||
}
|
||||
|
@ -3865,7 +3867,7 @@ impl Parser {
|
|||
seq_sep_trailing_disallowed(token::COMMA),
|
||||
|p| p.parse_ty(false)
|
||||
);
|
||||
for arg_tys.each |ty| {
|
||||
for arg_tys.iter().advance |ty| {
|
||||
args.push(ast::variant_arg {
|
||||
ty: *ty,
|
||||
id: self.get_id(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue