rustc: Change constraints in types to use interior vectors
This commit is contained in:
parent
f391acbd3f
commit
8bee69da25
6 changed files with 47 additions and 42 deletions
|
|
@ -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 ~[]; }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue