]> git.lizzy.rs Git - rust.git/commit
Fix handling of `move` closures -- since they have one fewer deref, we weren't proper...
authorNiko Matsakis <niko@alum.mit.edu>
Sun, 1 Feb 2015 01:58:26 +0000 (20:58 -0500)
committerNiko Matsakis <niko@alum.mit.edu>
Sun, 1 Feb 2015 11:13:06 +0000 (06:13 -0500)
commita9c3841a501691f36f98c47402d679885989637f
tree48791613ccf862feefb54a7a2c5e2a121904d949
parente778ea40701751ca15b19a8983949573ea9e3a07
Fix handling of `move` closures -- since they have one fewer deref, we weren't properly adjusting the closure kind in that case.
src/librustc_typeck/check/upvar.rs
src/test/compile-fail/unboxed-closures-infer-fnmut-move-missing-mut.rs [new file with mode: 0644]
src/test/compile-fail/unboxed-closures-infer-fnonce-move-call-twice.rs [new file with mode: 0644]
src/test/run-pass/unboxed-closures-infer-fnmut-move.rs [new file with mode: 0644]
src/test/run-pass/unboxed-closures-infer-fnonce-move.rs [new file with mode: 0644]
src/test/run-pass/unboxed-closures-infer-fnonce.rs