diff options
| author | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-01-20 17:23:56 -0800 |
|---|---|---|
| committer | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-01-20 17:26:31 -0800 |
| commit | e36df0f6c87278345d4bb98292bff661291b65f2 (patch) | |
| tree | 7693c76c56ca21f530ed647402ae79ff00666abc /src/rt/rust_kernel.cpp | |
| parent | 00a4aee2ede16541b0af34093d2fbcc4ba7cd6f2 (diff) | |
| download | rust-e36df0f6c87278345d4bb98292bff661291b65f2.tar.gz rust-e36df0f6c87278345d4bb98292bff661291b65f2.zip | |
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
Diffstat (limited to 'src/rt/rust_kernel.cpp')
0 files changed, 0 insertions, 0 deletions
