Avoid segfault due to fallthrough in base case of incr_all_refcounts. We could use a typestate checker in rustc, any time now.
This commit is contained in:
parent
7e01aba12d
commit
1600974a3a
1 changed files with 1 additions and 0 deletions
|
|
@ -572,6 +572,7 @@ fn incr_all_refcnts(@block_ctxt cx,
|
|||
ret iter_structural_ty(cx, v, t,
|
||||
bind incr_all_refcnts(_, _, _));
|
||||
}
|
||||
ret res(cx, C_nil());
|
||||
}
|
||||
|
||||
fn drop_ty(@block_ctxt cx,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue