diff options
| author | Tim Chevalier <chevalier@alum.wellesley.edu> | 2011-06-30 00:18:41 -0700 |
|---|---|---|
| committer | Tim Chevalier <chevalier@alum.wellesley.edu> | 2011-06-30 12:37:30 -0700 |
| commit | 4519f54857af1e4fa9deca42bde218078865b125 (patch) | |
| tree | 8596a08a7286a3b44ee7a3b00d006e46695d1c64 /src/rustllvm/RustWrapper.cpp | |
| parent | add9031dd5c2814195df163b1d35a853876c64f6 (diff) | |
| download | rust-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
