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

Generic Associated Types in Database, replacing HasValueRef, HasArguments, HasStatement #2973

Merged
merged 2 commits into from
Mar 14, 2024

Conversation

nitn3lav
Copy link
Contributor

@nitn3lav nitn3lav commented Jan 7, 2024

replaces the associated types from the generic traits HasValueRef<'r>, HasArguments<'q> and HasStatement<'q> with generic associated types in Database, as described in the (now removed) comment:

The upcoming Rust feature, [Generic Associated Types], should obviate
the need for this trait.

This is obviously a breaking change.
GATs have been stable since Rust 1.65

@nitn3lav nitn3lav changed the title HasValueRef, HasArguments, HasStatement -> Database GATs Genaeric Associated Types in Database, replacing HasValueRef, HasArguments, HasStatement Jan 7, 2024
@nitn3lav nitn3lav changed the title Genaeric Associated Types in Database, replacing HasValueRef, HasArguments, HasStatement Generic Associated Types in Database, replacing HasValueRef, HasArguments, HasStatement Jan 7, 2024
@abonander
Copy link
Collaborator

This is a refactor I've been dreading having to do, I really appreciate it.

@abonander
Copy link
Collaborator

@nitn3lav can you rebase and fix the conflict? We're ready to merge breaking changes now.

replace the associated types from the generic traits
`HasValueRef<'r>`, `HasArguments<'q>` and `HasStatement<'q>`
with generic associated types in `Database`
@abonander abonander force-pushed the db-gat branch 2 times, most recently from 897f55b to 39c7190 Compare March 14, 2024 19:22
@abonander abonander merged commit 9ba488c into launchbadge:main Mar 14, 2024
62 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants