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:
Graydon Hoare 2010-11-26 13:03:56 -08:00
parent 7e01aba12d
commit 1600974a3a

View File

@ -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,