refactor(parse): separate self parameter parsing from general parameter parsing#145088
refactor(parse): separate self parameter parsing from general parameter parsing#145088xonx4l wants to merge 4 commits intorust-lang:masterfrom
Conversation
|
r? @nnethercote rustbot has assigned @nnethercote. Use |
This comment has been minimized.
This comment has been minimized.
| params.push(self_param); | ||
| } | ||
|
|
||
| let (mut reamining_params, _) = self.parse_paren_comma_seq(|p| { |
There was a problem hiding this comment.
s/reamining_params/remaining_params/
|
Please fix the errors, thanks! @rustbot author |
|
Reminder, once the PR becomes ready for a review, use |
This comment has been minimized.
This comment has been minimized.
|
(please also squash into one commit afterwards, thanks) |
This comment has been minimized.
This comment has been minimized.
|
@rustbot ready |
|
Still more CI failures to be fixed. @rustbot author |
|
☔ The latest upstream changes (presumably #145423) made this pull request unmergeable. Please resolve the merge conflicts. |
Co-authored-by: Nicholas Nethercote <n.nethercote@gmail.com>
Co-authored-by: Nicholas Nethercote <n.nethercote@gmail.com>
|
Sorry, I don't think this is a valid change. With the current code, the I understand your desire to clean this code up -- the |
|
@nnethercote I get it now thanks for all the guidance and feedback's means a lot . Btw I am big fan of the work you did in this project . keep going you are doing awesome work and inspiring so many like me to do deep and good work . Thanks |
|
Thank you! Let's close this PR, I don't think it's worth keeping open. |
Fixes #144206
The changes-:
Moves self parameter parsing out of parse_param_general and into parse_fn_params
for better separation of concerns. This removes the first_param boolean and its
branching logic while maintaining identical behavior.
Benefits:
No behavioral changes introduced.