]> git.lizzy.rs Git - rust.git/commit
Auto merge of #56460 - davidtwco:issue-55850, r=pnkfelix
authorbors <bors@rust-lang.org>
Fri, 7 Dec 2018 17:37:44 +0000 (17:37 +0000)
committerbors <bors@rust-lang.org>
Fri, 7 Dec 2018 17:37:44 +0000 (17:37 +0000)
commita40fdeddd81965ee08344fbdd2dbdc04adf24561
tree64f450ee94bee444e09ee90d6f7365a34b72b78d
parent1c3236afc3560b5781acf942a4746aeb11e5374e
parent4a286d33f9833d001d1b6ee7272b2afc9b7ff425
Auto merge of #56460 - davidtwco:issue-55850, r=pnkfelix

Fix ICE with generators and NLL

Fix #55850.

This PR stops an ICE in #55850 by not panicking when a region cannot be named. However, this PR does not (yet) fix the underlying issue that the correct name for the test case provided for the issue (in this instance, `'a`) was not found.

This PR also lays a little bit of groundwork by categorizing yields separately from returns so that region naming can be specialized for this case.

r? @pnkfelix