rustc: Implement a new resolve pass behind a compile flag

This commit is contained in:
Patrick Walton
2012-05-22 10:54:12 -07:00
parent 0b1edb7f0e
commit f093d374ed
42 changed files with 4336 additions and 163 deletions

View File

@@ -572,6 +572,13 @@ fn walk_pat(pat: @pat, it: fn(@pat)) {
}
}
fn view_path_id(p: @view_path) -> node_id {
alt p.node {
view_path_simple(_, _, id) | view_path_glob(_, id) |
view_path_list(_, _, id) { id }
}
}
// Local Variables:
// mode: rust
// fill-column: 78;