about summary refs log tree commit diff
path: root/compiler/rustc_pattern_analysis/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-09-07 23:30:13 +0200
committerGitHub <noreply@github.com>2024-09-07 23:30:13 +0200
commit7b7f2f7f74522da174910f650e737aa80cc5705e (patch)
tree207f62a4761529d2df807cdc5332e4a3081f7f6d /compiler/rustc_pattern_analysis/src
parent37523d2a59b4dd210ae6f938c3f05dae0ddb3571 (diff)
parent384aed834cd83bdd0e93a2ef5690d3e44bf15856 (diff)
downloadrust-7b7f2f7f74522da174910f650e737aa80cc5705e.tar.gz
rust-7b7f2f7f74522da174910f650e737aa80cc5705e.zip
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
Diffstat (limited to 'compiler/rustc_pattern_analysis/src')
0 files changed, 0 insertions, 0 deletions