-
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
Refactored Field Error Function #2341
Refactored Field Error Function #2341
Conversation
032ebe8
to
cdd59b8
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.
Looks good! The suggestions will make the code a little simpler to use but the logic is great. Thank you :)
87a8284
to
60904c1
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.
Great stuff :) thank you!
@MahadMuhammad please fix the conflicts and I will merge this PR |
cb120fd
to
60904c1
Compare
60904c1
to
2ddf542
Compare
2153944
to
634b286
Compare
Refactored field error function into one funciton Fixes Rust-GCC#2336 gcc/rust/ChangeLog: * typecheck/rust-hir-type-check-pattern.cc (emit_invalid_field_error): Refactored Field Error Function (TypeCheckPattern::visit): called emit_invalid_field_error function Signed-off-by: Muhammad Mahad <mahadtxt@gmail.com>
634b286
to
41f5344
Compare
@CohenArthur Done. After 5 hours of fighting with git :D |
aw :) thanks for the work haha. next time if you want we can jump on a call and fix these together |
Refactored field error function into one function, To make easier error emission.
Fixes Refactoring Field Error Function into one Function #2336
Refactored Both function calls into function.
Called function at the error emission part.
gcc/rust/ChangeLog: