diff options
| author | Tim Chevalier <chevalier@alum.wellesley.edu> | 2011-07-05 19:57:34 -0700 |
|---|---|---|
| committer | Tim Chevalier <chevalier@alum.wellesley.edu> | 2011-07-05 19:58:49 -0700 |
| commit | f279e0d76e3cfb7753074bc4c77926c0e7e48990 (patch) | |
| tree | 821a57ddf3f7f267a3770d934f1cb92cc9d031c9 /src/rt/rust_task.cpp | |
| parent | 1bba58504414c845bd6b24b31c3be2d3f982c511 (diff) | |
| download | rust-f279e0d76e3cfb7753074bc4c77926c0e7e48990.tar.gz rust-f279e0d76e3cfb7753074bc4c77926c0e7e48990.zip | |
Handle pattern-bound upvars
If a closure inside a case alternative (for example, a for each loop) referenced a pattern-bound variable, this would cause an assertion failure in trans. Changed trans::collect_upvars to handle pattern-bound vars correctly. Incidentally, eliminated all direct uses of option::get in trans.
Diffstat (limited to 'src/rt/rust_task.cpp')
0 files changed, 0 insertions, 0 deletions
