mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 18:23:49 +00:00
6b290367ec
Substitute types before checking inlining compatibility. Addresses https://github.com/rust-lang/rust/issues/112332 and https://github.com/rust-lang/rust/issues/113781 I don't have a minimal test, but I this seems to remove the ICE locally. This whole pre-inlining validation mirrors the "real" MIR validation pass to verify that inlined MIR will still pass validation. The debuginfo loop is added because MIR validation check projections in debuginfo. Likewise, MIR validation only checks `is_subtype`, so there is no reason for a stronger check. The types were not being substituted in `check_equal`, so we were not bailing out of inlining if the substituted MIR callee body would not pass validation. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
messages.ftl |