-
Notifications
You must be signed in to change notification settings - Fork 314
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
Resolve fully-qualified associated types #905
Open
orangeng
wants to merge
1
commit into
mozilla:master
Choose a base branch
from
orangeng:parse-assoc-types
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains 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
mversic
force-pushed
the
parse-assoc-types
branch
from
December 7, 2023 08:24
c15a902
to
cda3c70
Compare
mversic
reviewed
Dec 7, 2023
mversic
reviewed
Dec 7, 2023
mversic
reviewed
Dec 7, 2023
orangeng
changed the title
Added functionality to resolve fully-qualified trait associated types in cbindgen
Added functionality to resolve fully-qualified trait associated types in cbindgen. Closes #106
Dec 7, 2023
orangeng
changed the title
Added functionality to resolve fully-qualified trait associated types in cbindgen. Closes #106
Resolve fully-qualified associated types
Dec 7, 2023
orangeng
force-pushed
the
parse-assoc-types
branch
from
December 7, 2023 09:19
cda3c70
to
712ca52
Compare
mversic
reviewed
Dec 7, 2023
mversic
reviewed
Dec 7, 2023
mversic
reviewed
Dec 7, 2023
mversic
reviewed
Dec 7, 2023
mversic
reviewed
Dec 7, 2023
mversic
reviewed
Dec 7, 2023
mversic
reviewed
Dec 7, 2023
mversic
reviewed
Dec 7, 2023
mversic
reviewed
Dec 7, 2023
mversic
reviewed
Dec 7, 2023
mversic
reviewed
Dec 7, 2023
orangeng
force-pushed
the
parse-assoc-types
branch
2 times, most recently
from
December 11, 2023 07:27
2cd1735
to
a76a4e8
Compare
mversic
force-pushed
the
parse-assoc-types
branch
from
February 15, 2024 18:04
a76a4e8
to
beb281c
Compare
mversic
force-pushed
the
parse-assoc-types
branch
from
March 9, 2024 08:50
beb281c
to
3ff88a9
Compare
mversic
force-pushed
the
parse-assoc-types
branch
4 times, most recently
from
April 23, 2024 11:49
fa24f93
to
2895b55
Compare
@emilio is there something blocking the merge of this feature? |
mversic
force-pushed
the
parse-assoc-types
branch
2 times, most recently
from
May 17, 2024 20:08
c7f64b2
to
5258104
Compare
@emilio do you think we can get this PR merged soon? |
mversic
force-pushed
the
parse-assoc-types
branch
2 times, most recently
from
June 4, 2024 11:56
4cd9216
to
862232e
Compare
We're currently using this in prod. Would love to get this merged in! Without this PR out entire cbindgen flow wouldn't work. Thanks @orangeng for your awesome contribution! |
mversic
force-pushed
the
parse-assoc-types
branch
from
August 22, 2024 17:51
862232e
to
60fabe5
Compare
mversic
force-pushed
the
parse-assoc-types
branch
from
November 1, 2024 15:46
60fabe5
to
5edf653
Compare
mversic
force-pushed
the
parse-assoc-types
branch
from
November 14, 2024 16:22
5edf653
to
bbf7444
Compare
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.
In the parsing stage, the functionality of the syn::Impl parsing is extended to keep track of associated type implementations in trait Impls.
This info is kept in a hash-map, where the key is a combination of (self type, trait name, associated type name) and the value is the concrete type itself.
In the library/transformation stage, this populated hashmap is then referenced to resolve associated types found.
Closes #106