about summary refs log tree commit diff
path: root/src/rt/rust_kernel.cpp
diff options
context:
space:
mode:
authorTim Chevalier <chevalier@alum.wellesley.edu>2012-01-20 17:23:56 -0800
committerTim Chevalier <chevalier@alum.wellesley.edu>2012-01-20 17:26:31 -0800
commite36df0f6c87278345d4bb98292bff661291b65f2 (patch)
tree7693c76c56ca21f530ed647402ae79ff00666abc /src/rt/rust_kernel.cpp
parent00a4aee2ede16541b0af34093d2fbcc4ba7cd6f2 (diff)
downloadrust-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