rust/src/comp/util
Tim Chevalier 63e87c102d typestate_check can now handle expr_block, expr_if, and expr_binary
(caveat for the latter: it assumes that binary operations are strict;
a TODO is to detect or and and and correctly reflect that they're lazy
in the second argument). I had to add an ann field to ast.block,
resulting in the usual boilerplate changes.

Test cases that currently work (if you uncomment the typestate pass
in the driver) (all these are under test/compile-fail):

fru-typestate
ret-uninit
use-uninit
use-uninit-2
use-uninit-3
2011-04-12 19:03:52 -07:00
..
common.rs Further work on typestate. Handles expr_rec and expr_assign now. 2011-04-12 14:31:46 -07:00
typestate_ann.rs typestate_check can now handle expr_block, expr_if, and expr_binary 2011-04-12 19:03:52 -07:00