]> git.lizzy.rs Git - rust.git/commit
Change expansion of `for` loop to use a `match` statement
authorNiko Matsakis <niko@alum.mit.edu>
Fri, 17 Jan 2014 13:30:06 +0000 (08:30 -0500)
committerNiko Matsakis <niko@alum.mit.edu>
Fri, 17 Jan 2014 13:30:06 +0000 (08:30 -0500)
commitb1da8c618fb49d8a42270454ea1bf5ddca426683
treed7b2a73cf5209538c19337d57aad8576abcd2af7
parent8f16356e5fb1a86bf2239a6bd51c3dda11155d1e
Change expansion of `for` loop to use a `match` statement
so that the "innermost enclosing statement" used for rvalue
temporaries matches up with user expectations
src/libsyntax/ext/expand.rs
src/test/run-pass/cleanup-rvalue-for-scope.rs [new file with mode: 0644]