luqmana / rust-opencl

OpenCL bindings for Rust.
Other
170 stars 42 forks source link

Not sure how this even compiled. Iff move is used out_event cannot be se... #56

Closed ghost closed 9 years ago

ghost commented 9 years ago

...t by the closure.

eholk commented 9 years ago

My version still compiled, but I like yours better. Some of the changes in my last patch might be suspect, since it took me a while to figure out the new function type system.

Is this by chance a bug in the compiler, or was move doing something different there (e.g. moving the closure we created right there into the callee, but not doing anything with its captured data)?