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

Remove elaborated bounds from trait item bounds #526

Merged
merged 2 commits into from
Jan 16, 2025

Conversation

Nadrieril
Copy link
Member

We used to use tcx.item_bounds to get the predicates required on a trait associated item. On top of the explicitly-written bounds, this adds parent bounds, e.g. type Item: Copy would become type Item: Copy + Clone. These parent bounds are not necessary so we now use explicit_item_bounds which doesn't have them. This also gets us better spans for clauses.

Companion PR to cryspen/hax#1222.

@Nadrieril Nadrieril merged commit dc79e01 into AeneasVerif:main Jan 16, 2025
5 checks passed
@Nadrieril Nadrieril deleted the update-hax branch January 16, 2025 14:42
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

Successfully merging this pull request may close these issues.

1 participant