Skip to content

Allow constraining opaque types during subtyping in the trait system#125447

Merged
bors merged 1 commit intorust-lang:masterfrom
oli-obk:eq_opaque_pred
Jun 19, 2024
Merged

Allow constraining opaque types during subtyping in the trait system#125447
bors merged 1 commit intorust-lang:masterfrom
oli-obk:eq_opaque_pred

Conversation

@oli-obk
Copy link
Contributor

@oli-obk oli-obk commented May 23, 2024

Previous attempt: #123979

Sometimes we don't immediately perform subtyping, but instead register a subtyping obligation and solve that obligation when its inference variables become resolved. Unlike immediate subtyping, we currently do not allow registering hidden types for opaque types. This PR also allows that.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-testsuite Area: The testsuite used to check the correctness of rustc disposition-merge This issue / PR is in PFCP or FCP with a disposition to merge it. finished-final-comment-period The final comment period is finished for this PR / Issue. S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-types Relevant to the types team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.