diff options
| author | Steve Klabnik <steve@steveklabnik.com> | 2016-05-11 09:27:43 -0400 |
|---|---|---|
| committer | Steve Klabnik <steve@steveklabnik.com> | 2016-05-11 09:27:43 -0400 |
| commit | 3b75f4b56efb0f4da02031d5b964977e4dc1fbba (patch) | |
| tree | 278f09955374c1ce8d768dc05be4cd88ab1009a8 /src/rustllvm/ExecutionEngineWrapper.cpp | |
| parent | 82c4f5915bfb330db596d06b74eb406d21845f9e (diff) | |
| parent | 6fed0132f314622700da9cd9f5746cfc4f4bb87f (diff) | |
| download | rust-3b75f4b56efb0f4da02031d5b964977e4dc1fbba.tar.gz rust-3b75f4b56efb0f4da02031d5b964977e4dc1fbba.zip | |
Rollup merge of #33345 - birkenfeld:issue-31754, r=pnkfelix
middle: reset loop labels while visiting closure This should fix #31754 and follow-up #25343. Before the latter, the closure was visited twice in the context of the enclosing fn, which made even a single closure with a loop label emit a warning. With this change, the closure is still visited within the context of the main fn (which is intended, since it is not a separate item) but resets the found loop labels while being visited. Fixes: #31754 Note: I amended the test file from #25343, but I don't know if the original or amended test are effective, since as far as I could see, compiletest's run-pass tests do not check for zero warnings emitted? /cc @Manishearth
Diffstat (limited to 'src/rustllvm/ExecutionEngineWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
