]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #107074 - lcnr:validate-dont-skip-opaque, r=compiler-errors
authorMatthias Krüger <matthias.krueger@famsik.de>
Thu, 26 Jan 2023 06:53:25 +0000 (07:53 +0100)
committerGitHub <noreply@github.com>
Thu, 26 Jan 2023 06:53:25 +0000 (07:53 +0100)
commitc1d722c1cf6d1e497a042c0449ee7fdfcb18d2e6
tree11cbffb7650a8e931f5ba74132cdbb73c701cff5
parentd667105681726fe84ef6256b8a75b2e770bed3e6
parent0accf08e6b2b7a59147e9ca1c80ed969e82781fc
Rollup merge of #107074 - lcnr:validate-dont-skip-opaque, r=compiler-errors

remove unnecessary check for opaque types

this isn't needed and may hide some errors.

after analysis there are no opaque types so it's a noop anyways

before analysis there are opaque types but due to `Reveal::UserFacing` we don't reveal them. `is_subtype` simply discards the opaque type constraints as these will get checked again during mir borrowck.

r? types

want to land this after the beta-cutoff as mir validator changes are apparently pretty scary