Skip to content

Commit

Permalink
Auto merge of rust-lang#113853 - cjgillot:split-validator, r=compiler…
Browse files Browse the repository at this point in the history
…-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.
  • Loading branch information
bors committed Jul 22, 2023
2 parents ab0f3e6 + b6cd700 commit c399954
Show file tree
Hide file tree
Showing 2 changed files with 320 additions and 305 deletions.
Loading

0 comments on commit c399954

Please sign in to comment.