Move ast::pat_id_map to ast::util
This commit is contained in:
parent
4d92cb5c63
commit
608f7ccded
4 changed files with 5 additions and 5 deletions
|
|
@ -69,7 +69,7 @@ type match_branch =
|
|||
bound: bind_map,
|
||||
data: @{body: BasicBlockRef,
|
||||
guard: option::t<@ast::expr>,
|
||||
id_map: ast::pat_id_map}};
|
||||
id_map: ast_util::pat_id_map}};
|
||||
type match = [match_branch];
|
||||
|
||||
fn matches_always(p: &@ast::pat) -> bool {
|
||||
|
|
@ -464,7 +464,7 @@ fn compile_submatch(bcx: @block_ctxt, m: &match, vals: [ValueRef],
|
|||
|
||||
// Returns false for unreachable blocks
|
||||
fn make_phi_bindings(bcx: &@block_ctxt, map: &[exit_node],
|
||||
ids: &ast::pat_id_map) -> bool {
|
||||
ids: &ast_util::pat_id_map) -> bool {
|
||||
let our_block = bcx.llbb as uint;
|
||||
let success = true;
|
||||
for each item: @{key: ast::ident, val: ast::node_id} in ids.items() {
|
||||
|
|
|
|||
|
|
@ -1305,7 +1305,7 @@ fn check_lit(ccx: @crate_ctxt, lit: &@ast::lit) -> ty::t {
|
|||
|
||||
// Pattern checking is top-down rather than bottom-up so that bindings get
|
||||
// their types immediately.
|
||||
fn check_pat(fcx: &@fn_ctxt, map: &ast::pat_id_map, pat: &@ast::pat,
|
||||
fn check_pat(fcx: &@fn_ctxt, map: &ast_util::pat_id_map, pat: &@ast::pat,
|
||||
expected: ty::t) {
|
||||
alt pat.node {
|
||||
ast::pat_wild. { write::ty_only_fixup(fcx, pat.id, expected); }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue