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 using #[concretize] on functions with bounded generic types #531

Merged
merged 1 commit into from
Dec 16, 2023

Conversation

asomers
Copy link
Owner

@asomers asomers commented Dec 13, 2023

It's usually possible to turn such types into trait objects. We just need to emit extra parenthesis in the generated code.

Fixes #530

It's usually possible to turn such types into trait objects.  We just
need to emit extra parenthesis in the generated code.

Fixes #530
@asomers
Copy link
Owner Author

asomers commented Dec 13, 2023

cc @glueball can you please test this change?

@glueball
Copy link

Tested with

[patch.crates-io]
mockall = { git = "https://github.com/asomers/mockall", branch = "concretize-bounds" }

It works! Awesome ;)

@asomers asomers merged commit d4e0710 into master Dec 16, 2023
3 checks passed
@asomers asomers deleted the concretize-bounds branch December 16, 2023 16:27
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.

Concretize rejects auto-trait bounds
2 participants