about summary refs log tree commit diff
path: root/tests/coverage/branch_while.rs
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2024-04-16 21:41:26 +0200
committerGitHub <noreply@github.com>2024-04-16 21:41:26 +0200
commitf939d1ff4820844595d0f50f94038869f1445d08 (patch)
treeb5ce75ce5508e61f1dfdefcd56d58b39b271b6c9 /tests/coverage/branch_while.rs
parent183c706305d8c4e0ccb0967932381baf7e0c3611 (diff)
parent82e7773bc1ab8b89c7b8c0a107c1f5741fe0bf1e (diff)
downloadrust-f939d1ff4820844595d0f50f94038869f1445d08.tar.gz
rust-f939d1ff4820844595d0f50f94038869f1445d08.zip
Rollup merge of #123979 - oli-obk:define_opaque_types7, r=compiler-errors
Subtype predicates only exist on inference types, so we can allow them to register opaque types within them.

We were unable to come up with an example where this could be reached (subtype predicates with either side not being an infer var gets consumed during any `select_where_possible` invocation, of which we have a lot in typeck). To ensure we don't silently accept new behaviour in case we missed a situation where this could occur, I have added an assert that prevents opaque types from having their hidden type constrained.

r? `@compiler-errors`
Diffstat (limited to 'tests/coverage/branch_while.rs')
0 files changed, 0 insertions, 0 deletions