]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #87645 - LeSeulArtichaut:issue-87414, r=oli-obk
authorYuki Okushi <jtitor@2k36.org>
Tue, 3 Aug 2021 10:07:43 +0000 (19:07 +0900)
committerGitHub <noreply@github.com>
Tue, 3 Aug 2021 10:07:43 +0000 (19:07 +0900)
Properly find owner of closure in THIR unsafeck

Previously, when encountering a closure in a constant, the THIR unsafeck gets invoked on the owner of the constant instead of the constant itself, producing cycles.
Supersedes #87492. ```@FabianWolff``` thanks for your work on that PR, I copied your test file and added you as a co-author.

Fixes #87414.
r? ```@oli-obk```


Trivial merge