Skip to content

Commit

Permalink
Rollup merge of #105455 - lcnr:correct-reveal-in-validate, r=jackh726
Browse files Browse the repository at this point in the history
use the correct `Reveal` during validation

supersedes #105454. Deals with rust-lang/rust#105009 (comment), not closing #105009 as the ICE may leak into beta

The issue was the following:
- we optimize the mir, using `Reveal::All`
- some optimization relies on the hidden type of an opaque type
- we then validate using `Reveal::UserFacing` again which is not able to observe the hidden type

r? `@jackh726`
  • Loading branch information
matthiaskrgr authored Dec 9, 2022
2 parents 9464222 + 98ad06d commit 1196d49
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit 1196d49

Please sign in to comment.