-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Support const generics for builtin derive macro #13463
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
Merged
bors
merged 1 commit into
rust-lang:master
from
lowr:fix/builtin-derive-with-const-generics
Oct 22, 2022
Merged
Support const generics for builtin derive macro #13463
bors
merged 1 commit into
rust-lang:master
from
lowr:fix/builtin-derive-with-const-generics
Oct 22, 2022
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
While this patch suppresses the error shown in the original issue, hovering over the |
Thanks! |
bors
added a commit
that referenced
this pull request
Oct 22, 2022
…=Veykril Support const generics for builtin derive macro Fixes #13121 We have been treating every generic parameter as type parameter during builtin derive macro expansion. This patch adds support for const generics in such expansions.
f550114
to
6459d7f
Compare
@Veykril Sorry I've pushed with a small tweak, could you r+ again the new commit? |
sure :) |
☀️ Test successful - checks-actions |
bors
added a commit
that referenced
this pull request
Oct 24, 2022
fix: Test all type args for trait when finding matching impl Addresses #13463 (comment) When finding matching impl for a trait method, we've been testing the unifiability of self type. However, there can be multiple impl of a trait for the same type with different generic arguments for the trait. This patch takes it into account and tests the unifiability of all type arguments for the trait (the first being the self type) thus enables rust-analyzer to find the correct impl even in such cases.
bors
added a commit
that referenced
this pull request
Oct 26, 2022
…ebold fix: Test all generic args for trait when finding matching impl Addresses #13463 (comment) When finding matching impl for a trait method, we've been testing the unifiability of self type. However, there can be multiple impl of a trait for the same type with different generic arguments for the trait. This patch takes it into account and tests the unifiability of all type arguments for the trait (the first being the self type) thus enables rust-analyzer to find the correct impl even in such cases.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #13121
We have been treating every generic parameter as type parameter during builtin derive macro expansion. This patch adds support for const generics in such expansions.