rustc: Change constraints in types to use interior vectors

This commit is contained in:
Patrick Walton 2011-07-01 15:50:32 -07:00
parent f391acbd3f
commit 8bee69da25
6 changed files with 47 additions and 42 deletions

View file

@ -453,10 +453,10 @@ fn controlflow_expr(&crate_ctxt ccx, @expr e) -> controlflow {
}
}
fn constraints_expr(&ty::ctxt cx, @expr e) -> vec[@ty::constr_def] {
fn constraints_expr(&ty::ctxt cx, @expr e) -> (@ty::constr_def)[] {
alt (ty::struct(cx, ty::node_id_to_type(cx, e.id))) {
case (ty::ty_fn(_, _, _, _, ?cs)) { ret cs; }
case (_) { ret []; }
case (_) { ret ~[]; }
}
}