about summary refs log tree commit diff
path: root/src/rt/rust_timer.cpp
diff options
context:
space:
mode:
authorTim Chevalier <chevalier@alum.wellesley.edu>2011-07-12 11:22:31 -0700
committerTim Chevalier <chevalier@alum.wellesley.edu>2011-07-12 11:22:31 -0700
commit21b94d57d5319e42f5a30818c88b95c95449864e (patch)
treef73171cd2a62b49a9052416bf7c711f9ca8a66fc /src/rt/rust_timer.cpp
parent0e594939aa032c074df925d03c7d1289d6c2efc2 (diff)
downloadrust-21b94d57d5319e42f5a30818c88b95c95449864e.tar.gz
rust-21b94d57d5319e42f5a30818c88b95c95449864e.zip
Change typestate to use visit instead of walk
Typestate was failing to check some code because if it saw an item,
it would quit immediately. This was to avoid checking nested items
in the same context as the lexically enclosing item, but it was
having the wrong effect: not checking the code after the item at all.

Fixed by switching to visit and skipping over items in a proper
nested fashion. Closes #668.
Diffstat (limited to 'src/rt/rust_timer.cpp')
0 files changed, 0 insertions, 0 deletions