Files
rust/compiler/rustc_mir_transform/src
Matthias Krüger 7b7f2f7f74 Rollup merge of #129847 - compiler-errors:async-cycle, r=davidtwco
Do not call query to compute coroutine layout for synthetic body of async closure

There is code in the MIR validator that attempts to prevent query cycles when inlining a coroutine into itself, and will use the coroutine layout directly from the body when it detects that's the same coroutine as the one that's being validated. After #128506, this logic didn't take into account the fact that the coroutine def id will differ if it's the "by-move body" of an async closure. This PR implements that.

Fixes #129811
2024-09-07 23:30:13 +02:00
..
2024-07-07 18:16:38 +02:00
2024-07-29 08:26:52 +10:00
2024-09-03 16:03:46 +10:00
2024-09-03 16:03:46 +10:00
2024-09-03 16:03:46 +10:00
2024-07-29 08:26:52 +10:00
2024-09-03 16:03:46 +10:00
2024-09-03 16:04:09 +10:00
2024-09-03 16:03:46 +10:00