Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add type_mismatched_generic_lifetimes lint. #1039

Merged
merged 1 commit into from
Dec 11, 2024

Conversation

obi1kenobi
Copy link
Owner

It catches structs, enums, and unions that have gained or lost generic lifetime parameters. Using such a type with a mismatching number of generic lifetime parameters is a compile error.

It catches structs, enums, and unions that have gained or lost generic lifetime parameters. Using such a type with a mismatching number of generic lifetime parameters is a compile error.
@obi1kenobi obi1kenobi enabled auto-merge (squash) December 11, 2024 05:41
@obi1kenobi obi1kenobi merged commit 649ae53 into main Dec 11, 2024
30 checks passed
@obi1kenobi obi1kenobi deleted the add_type_mismatched_generic_lifetimes branch December 11, 2024 05:46
obi1kenobi added a commit that referenced this pull request Dec 11, 2024
Analogous to #1039, but this time for traits instead of structs/enums/unions. For traits, the proof of breakage is in trait bounds where all lifetimes must be explicitly specified.
obi1kenobi added a commit that referenced this pull request Dec 11, 2024
Analogous to #1039, but this time for traits instead of
structs/enums/unions. For traits, the proof of breakage is in trait
bounds where all lifetimes must be explicitly specified.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant