Getting rid of lots more vector +=. (issue #2719)

This commit is contained in:
Eric Holk
2012-06-26 00:39:18 -07:00
parent 007b9d9acd
commit b9d3ad0736
34 changed files with 261 additions and 248 deletions

View File

@@ -229,9 +229,9 @@ fn map_item(i: @item, cx: ctx, v: vt) {
}
alt i.node {
item_mod(_) | item_native_mod(_) {
cx.path += [path_mod(i.ident)]/~;
vec::push(cx.path, path_mod(i.ident));
}
_ { cx.path += [path_name(i.ident)]/~; }
_ { vec::push(cx.path, path_name(i.ident)); }
}
visit::visit_item(i, cx, v);
vec::pop(cx.path);