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

fix(exporter+engine): drop default parameters on traits #947

Merged
merged 1 commit into from
Oct 2, 2024

Conversation

W95Psp
Copy link
Collaborator

@W95Psp W95Psp commented Oct 2, 2024

This PR disable default parameters on traits, both in the engine and in the exporter, following the conversation in #310.

Explanation (quoting my comment in code):

On use site, Rust always give us all the generic
parameters, no matter the defaultness. This information is
thus not so useful. At the same time, as discussed in
#310, extracting this
default type causes failures when querying Rust for trait
resolution. We thus decided to disable this feature. If
this default type information is useful to you, please
open an issue on https://github.com/hacspec/hax.

Fixes #310

This PR disable default parameters on traits, both in the engine and
in the exporter, following the conversation in #310.

Explanation (quoting my comment in code):

> On use site, Rust always give us all the generic
> parameters, no matter the defaultness. This information is
> thus not so useful. At the same time, as discussed in
> #310, extracting this
> default type causes failures when querying Rust for trait
> resolution. We thus decided to disable this feature. If
> this default type information is useful to you, please
> open an issue on https://github.com/hacspec/hax.

Fixes #310
@W95Psp W95Psp requested a review from Nadrieril October 2, 2024 10:03
Copy link
Collaborator

@Nadrieril Nadrieril left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes in copied.rs look good to me; can't vouch for the rest.

@W95Psp
Copy link
Collaborator Author

W95Psp commented Oct 2, 2024

Thanks, yeah, no worries, the rest is just dumb propagation;:)

@W95Psp W95Psp added this pull request to the merge queue Oct 2, 2024
Merged via the queue into main with commit f8124b7 Oct 2, 2024
13 checks passed
@W95Psp W95Psp deleted the no-default-params-traits branch October 2, 2024 10:57
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.

Frontend: panic on default traits parameters
2 participants