Demode vec::push (and convert to method)

This commit is contained in:
Niko Matsakis
2012-09-26 17:33:34 -07:00
parent cd79e1d1b2
commit 67a8e7128a
134 changed files with 688 additions and 674 deletions

View File

@@ -273,9 +273,9 @@ fn map_item(i: @item, cx: ctx, v: vt) {
}
match i.node {
item_mod(_) | item_foreign_mod(_) => {
vec::push(cx.path, path_mod(i.ident));
cx.path.push(path_mod(i.ident));
}
_ => vec::push(cx.path, path_name(i.ident))
_ => cx.path.push(path_name(i.ident))
}
visit::visit_item(i, cx, v);
vec::pop(cx.path);