-
Notifications
You must be signed in to change notification settings - Fork 162
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
Create base class AssociatedItem
#2679
Conversation
2330513
to
07ba207
Compare
Is "deconstructor" a reference to something precise, or is it supposed to read "destructor"? |
07ba207
to
7d9f163
Compare
Ok, so destructor, not deconstructor as you had in the commit log :) I was wondering if this was yet-another C++ concept I didn't know :) |
7d9f163
to
7fe65f8
Compare
7fe65f8
to
05a2349
Compare
AssociatedItem
gcc/rust/ChangeLog: * ast/rust-ast.h (class AssociatedItem): New, based on TraitItem, InherentImplItem, and TraitImplItem classes. (class TraitItem): Inherit from AssociatedItem. (class InherentImplItem): Likewise. (class TraitImplItem): Likewise. * ast/rust-item.h (class Method): Update cloning functions. (class Function): Likewise. (class TypeAlias): Likewise. (class ConstantItem): Likewise. (class TraitItemFunc): Likewise. (class TraitItemMethod): Likewise. (class TraitItemConst): Likewise. (class TraitItemType): Likewise. * ast/rust-macro.h (class MacroInvocation): Likewise. Signed-off-by: Owen Avery <[email protected]>
05a2349
to
a792b95
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can see this being useful can you do the same for the HIR?
Need @CohenArthur sign off here too for this one. I like this idea
I'd probably want to modify the HIR in another pull request -- it looks like the HIR representation of associated items is already slightly different from the AST representation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks great! thank you :D I like these changes
Taken from #2670