Move vector addition out of trans and into libcore.

This commit is contained in:
Eric Holk
2012-06-13 16:14:01 -07:00
parent f8fa0a2437
commit 0e5cfd9f33
19 changed files with 172 additions and 247 deletions

View File

@@ -159,7 +159,7 @@ impl parser_common for parser {
else { self.expect(t); } }
_ { }
}
v += [f(self)];
vec::push(v, f(self));
}
ret v;
@@ -202,7 +202,7 @@ impl parser_common for parser {
_ { }
}
if sep.trailing_sep_allowed && self.token == ket { break; }
v += [f(self)];
vec::push(v, f(self));
}
ret v;
}