Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

opaque types in the defining scope auto trait candidate #32

Open
lcnr opened this issue Jun 20, 2023 · 0 comments
Open

opaque types in the defining scope auto trait candidate #32

lcnr opened this issue Jun 20, 2023 · 0 comments
Labels

Comments

@lcnr
Copy link
Contributor

lcnr commented Jun 20, 2023

Due to auto trait leakage, we have an auto trait candidate for opaque types. Conceptionally auto trait leakage emulates assemble_candidates_after_normalizing_self_ty for things we can't normalize in a regular way. If we are able to normalize sensibly then we don't need to add auto traits for projections, this has been implemented in rust-lang/rust#112825.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant