rustc: Make function types have vstores in them
This commit is contained in:
parent
99942ae430
commit
0101125a96
22 changed files with 237 additions and 114 deletions
|
@ -25,7 +25,8 @@ fn check_crate(tcx: ty::ctxt, crate: @crate) {
|
|||
v.visit_block(b, {in_loop: false, can_ret: false}, v);
|
||||
}
|
||||
expr_loop_body(@{node: expr_fn_block(_, b, _), _}) => {
|
||||
let blk = is_blockish(ty::ty_fn_proto(ty::expr_ty(tcx, e)));
|
||||
let blk = ty::is_blockish(ty::ty_fn_proto(ty::expr_ty(tcx,
|
||||
e)));
|
||||
v.visit_block(b, {in_loop: true, can_ret: blk}, v);
|
||||
}
|
||||
expr_break => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue