Skip to content

Commit

Permalink
Rollup merge of #137298 - compiler-errors:mir-wf, r=lcnr
Browse files Browse the repository at this point in the history
Check signature WF when lowering MIR body

Alternative to #137233.

rust-lang/rust#137233 (comment)

Fixes rust-lang/rust#137186

We do this check in `mir_drops_elaborated_and_const_checked` and not during `mir_promoted` because that may result in borrowck cycles if WF requires looking into an opaque hidden type. This causes some TAIT tests to fail unnecessarily.

r? lcnr

try-job: test-various
  • Loading branch information
jieyouxu authored Mar 5, 2025
2 parents 47d00ba + c001c2a commit 93240da
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit 93240da

Please sign in to comment.