Skip to content

soundly supporting specialization #39

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

Open
lcnr opened this issue Jun 27, 2023 · 1 comment
Open

soundly supporting specialization #39

lcnr opened this issue Jun 27, 2023 · 1 comment

Comments

@lcnr
Copy link
Contributor

lcnr commented Jun 27, 2023

Supporting specialization in the new solver is challenging.

We only add alias bounds for projections which are well-formed due to a ParamEnv candidate (and add a special-case for builtin traits which act as if they are specialized). This is necessary for soundness (#6). It causes us to fail to prove <T as Trait>::DefaultAssoc: Sized with the new solver. Because specialization is used by std we may also allow alias bound candidates for specializing impls, even if unsound.

Other issues to be added here.

@lcnr
Copy link
Contributor Author

lcnr commented Sep 5, 2024

this is outdated, think about this again

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

No branches or pull requests

1 participant