mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 00:34:06 +00:00
3d9ee88ea2
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 |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
messages.ftl |