about summary refs log tree commit diff
path: root/src/rt/rust_task.cpp
diff options
context:
space:
mode:
authorTim Chevalier <chevalier@alum.wellesley.edu>2011-07-05 19:57:34 -0700
committerTim Chevalier <chevalier@alum.wellesley.edu>2011-07-05 19:58:49 -0700
commitf279e0d76e3cfb7753074bc4c77926c0e7e48990 (patch)
tree821a57ddf3f7f267a3770d934f1cb92cc9d031c9 /src/rt/rust_task.cpp
parent1bba58504414c845bd6b24b31c3be2d3f982c511 (diff)
downloadrust-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