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

Implement parameter variance inference #18774

Merged
merged 8 commits into from
Dec 29, 2024

Conversation

Veykril
Copy link
Member

@Veykril Veykril commented Dec 28, 2024

This lacks any support for impl trait in type aliases (assoc or free) and functions are not fully supported as we lack lifetime elision. RPITs should also be supported here, but we don't count them as GenericDefId yet so.

The inference does not work perfectly unfortunately as it may run into query cycles which we would need to resolve via fixpoint iteration which current salsa does not support (see module doc). Likewise, Const expressions can affect whether a parameter turns invariant which we also lack sometimes.

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Dec 28, 2024
@Veykril Veykril force-pushed the push-ysppqxpuknnw branch 2 times, most recently from e02f3be to 13a5ac4 Compare December 28, 2024 18:51
@Veykril Veykril marked this pull request as ready for review December 28, 2024 18:57
@Veykril Veykril added this pull request to the merge queue Dec 29, 2024
Merged via the queue into rust-lang:master with commit 11b351f Dec 29, 2024
9 checks passed
@Veykril Veykril deleted the push-ysppqxpuknnw branch December 29, 2024 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants