about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorTim Chevalier <chevalier@alum.wellesley.edu>2011-06-30 00:18:41 -0700
committerTim Chevalier <chevalier@alum.wellesley.edu>2011-06-30 12:37:30 -0700
commit4519f54857af1e4fa9deca42bde218078865b125 (patch)
tree8596a08a7286a3b44ee7a3b00d006e46695d1c64 /src/rustllvm/RustWrapper.cpp
parentadd9031dd5c2814195df163b1d35a853876c64f6 (diff)
downloadrust-4519f54857af1e4fa9deca42bde218078865b125.tar.gz
rust-4519f54857af1e4fa9deca42bde218078865b125.zip
Warn for unused variables
Modify typestate to check for unused variables and emit warnings
where relevant. This exposed a (previously harmless) bug in
collect_locals where outer functions had bit-vector entries
for init constraints for variables declared in their inner
nested functions. Fixing that required changing collect_locals to
use visit instead of walk -- probably a good thing anyway.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions