about summary refs log tree commit diff
path: root/compiler/rustc_interface/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-03-24 01:05:51 +0100
committerGitHub <noreply@github.com>2024-03-24 01:05:51 +0100
commit3d9ee88ea28bdf39b8e5fbf11405ed60acaa3eb4 (patch)
tree127c8fb6504ccd356ccd8f0b740181d5ffc1fdc3 /compiler/rustc_interface/src
parent516758136e4b979e8025d38522c49d9da36fbd74 (diff)
parent78ebb939c1f7135bcc851ba9d4d091d40bb7fe64 (diff)
downloadrust-3d9ee88ea28bdf39b8e5fbf11405ed60acaa3eb4.tar.gz
rust-3d9ee88ea28bdf39b8e5fbf11405ed60acaa3eb4.zip
Rollup merge of #122168 - compiler-errors:inline-coroutine-body-validation, r=cjgillot
Fix validation on substituted callee bodies in MIR inliner

When inlining a coroutine, we will substitute the MIR body with the args of the call. There is code in the MIR validator that attempts to prevent query cycles, and will use the coroutine body directly when it detects that's the body that's being validated. That means that when inlining a coroutine body that has been substituted, it may no longer be parameterized over the original args of the coroutine, which will lead to substitution ICEs.

Fixes #119064
Diffstat (limited to 'compiler/rustc_interface/src')
0 files changed, 0 insertions, 0 deletions