-
Notifications
You must be signed in to change notification settings - Fork 0
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
non-defining uses with non-param args will be breaking #135
Comments
sus idea: The reason we don't support defining opaques with unique params as args as that otherwise the mapping from the opaque to the hidden type is unclear: e.g. This is only an issue if there is no proper defining use. If we had one defining use |
The same approach would also allow non-defining uses of an opaque as long as there is one use which fully defines. E.g. If we use define |
This also doesn't work as soon as the opaque has lifetimes since we need region info to correlate the regions of the defining use w the hidden type. |
https://rust.godbolt.org/z/Yoc1efvxc
This currently compiles, but even just tryin got normalize the RPIT of the recursive call will fail as it does not have fully generic args.
Normalization fails and we don't treat the opaque as rigid
The text was updated successfully, but these errors were encountered: