]> git.lizzy.rs Git - rust.git/commit
Change for-loop desugar to not borrow the iterator during the loop
authorJohn Kåre Alsaker <john.kare.alsaker@gmail.com>
Sat, 27 May 2017 18:20:17 +0000 (20:20 +0200)
committerJohn Kåre Alsaker <john.kare.alsaker@gmail.com>
Thu, 1 Jun 2017 16:33:47 +0000 (18:33 +0200)
commitcfdbff7c125cbdd5a2b75e526717413718d16111
tree451f7b5b3a0f7b4a34eba2fc4310b78f0414f8d8
parenta11c26f6acb1b8890c36196e88371840c01e201d
Change for-loop desugar to not borrow the iterator during the loop
src/libcore/iter/mod.rs
src/librustc/hir/lowering.rs
src/librustc/hir/mod.rs
src/librustc/ich/impls_hir.rs
src/librustc_const_eval/check_match.rs
src/librustc_const_eval/diagnostics.rs
src/test/compile-fail/E0297.rs
src/test/compile-fail/for-loop-has-unit-body.rs [new file with mode: 0644]
src/test/run-pass/for-loop-has-unit-body.rs [new file with mode: 0644]