rust/src/test/compile-fail
Tim Chevalier e36df0f6c8 Handle fail after return correctly in typestate
Previously, typestate would conclude that this function was
correctly diverging:

fn f() -> ! { ret; fail; }

even though it always returns to the caller. It wasn't handling the
i_diverge and i_return bits correctly in the fail case. Fixed it.

Closes #897
2012-01-20 17:26:31 -08:00
..
2011-12-05 01:23:10 +01:00
2011-12-05 01:23:10 +01:00