Commit c399954
committed
Auto merge of rust-lang#113853 - cjgillot:split-validator, r=compiler-errors
Reuse the MIR validator for MIR inlining
Instead of having the inliner home-cook its own validation, we just check that the substituted MIR body passes the regular validation.
The MIR validation is first split in two: control flow validation (MIR syntax and CFG invariants) and type validation (subtyping relationship in assignments and projections). Only the latter can be affected by instantiating type parameters.File tree
2 files changed
+320
-305
lines changed- compiler
- rustc_const_eval/src/transform
- rustc_mir_transform/src
2 files changed
+320
-305
lines changed
0 commit comments