]> git.lizzy.rs Git - rust.git/commit - src/tools/miri
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)
commit345862d2245c2fe132c793ab528709045b38beaa
treeebcc03ab83ff9cd7b38f52a6d3c02489a03d1096
parente91405b9d5c8dabb3e488bafb314147f1050f9b9
parent12804230a25d4f996f4738de20c161d95df4933b
Rollup merge of #87645 - LeSeulArtichaut:issue-87414, r=oli-obk

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```