about summary refs log tree commit diff
path: root/src/rustllvm/MachOObjectFile.cpp
diff options
context:
space:
mode:
authorTim Chevalier <chevalier@alum.wellesley.edu>2011-04-12 19:03:52 -0700
committerTim Chevalier <chevalier@alum.wellesley.edu>2011-04-12 19:03:52 -0700
commit63e87c102d7b57b697fe274c64b9c895113e9171 (patch)
treeb349625cabef2df8754b228b5126e7ade1c80788 /src/rustllvm/MachOObjectFile.cpp
parentd3409f63687dae6096f4ed01a5ea6981a3cf0f65 (diff)
downloadrust-63e87c102d7b57b697fe274c64b9c895113e9171.tar.gz
rust-63e87c102d7b57b697fe274c64b9c895113e9171.zip
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
Diffstat (limited to 'src/rustllvm/MachOObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions