rustc: Implement "use mod"

This commit is contained in:
Patrick Walton
2012-08-31 11:19:07 -07:00
parent 28b1473f84
commit 6e7d5e1cbd
8 changed files with 297 additions and 103 deletions

View File

@@ -293,7 +293,7 @@ fn map_view_item(vi: @view_item, cx: ctx, _v: vt) {
match vi.node {
view_item_export(vps) => for vps.each |vp| {
let (id, name) = match vp.node {
view_path_simple(nm, _, id) => {
view_path_simple(nm, _, _, id) => {
(id, /* FIXME (#2543) */ copy nm)
}
view_path_glob(pth, id) | view_path_list(pth, _, id) => {