about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-07-21 09:14:55 +0000
committerbors <bors@rust-lang.org>2023-07-21 09:14:55 +0000
commit6b290367eca79457870fd57faa08d461d29b674e (patch)
tree47ead33529b2e1c938af67c2e7199701d81fd9fc /compiler/rustc_codegen_gcc
parent5419aa3a66fe0832269e021050b8275a2189c09f (diff)
parent45ffe41d144e3e5bc8993abcbcdd54d870a2ff53 (diff)
downloadrust-6b290367eca79457870fd57faa08d461d29b674e.tar.gz
rust-6b290367eca79457870fd57faa08d461d29b674e.zip
Auto merge of #113802 - cjgillot:check-debuginfo, r=compiler-errors
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.
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions