-
Notifications
You must be signed in to change notification settings - Fork 207
derive: Implement make_qualified_call helper #4394
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
base: master
Are you sure you want to change the base?
derive: Implement make_qualified_call helper #4394
Conversation
1229281 to
d7df9ae
Compare
5631aa0 to
7128540
Compare
|
@CohenArthur , i got it , thanks for the review . i applied the requested changed . |
CohenArthur
left a comment
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 good thank you! Just a few fixes and we can merge this
This patch implements the `qualified_call` helper method in the `Builder` class. This logic was previously intended to be a local helper in `DeriveClone`, but moving it to the `Builder` allows it to be reused across the compiler for constructing qualified function calls. It updates `DeriveClone::clone_call` to use this new `Builder` method, simplifying the code and resolving the TODO. Fixes Rust-GCC#4393 gcc/rust/ChangeLog: * ast/rust-ast-builder.h (Builder::qualified_call): New method declaration. * ast/rust-ast-builder.cc (Builder::qualified_call): Implement new method. * expand/rust-derive-clone.cc (DeriveClone::clone_call): Use builder.qualified_call. Signed-off-by: Jayant Chauhan <0001jayant@gmail.com>
7128540 to
515b5a8
Compare
|
@CohenArthur please review . thnakyou . |
|
|
||
| // Not sure how to call it properly in the meantime... | ||
|
|
||
| auto path = std::unique_ptr<Expr> ( |
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.
is this variable still used ?
This patch implements the make_qualified_call helper function as requested by the TODO in rust-derive-clone.cc. It refactors DeriveClone::clone_call to use this new helper, simplifying the construction of qualified paths for function calls.
Fixes #4393
gcc/rust/ChangeLog: