-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Allow leading pipe in matches!()
patterns.
#85272
Conversation
r? @m-ou-se (rust-highfive has picked a reviewer for you, use r? to override) |
@rfcbot merge |
Team member @m-ou-se has proposed to merge this. The next step is review by the rest of the tagged team members: Concerns:
Once a majority of reviewers approve (and at most 2 approvals are outstanding), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up! See this document for info about what commands tagged team members can give me. |
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 it possible to add tests for this?
There weren't tests for the |
I want to second @BurntSushi's request for tests. @rfcbot concern add tests |
cf736b9
to
e35967d
Compare
Done. Thanks. |
This comment has been minimized.
This comment has been minimized.
☔ The latest upstream changes (presumably #85720) made this pull request unmergeable. Please resolve the merge conflicts. |
e35967d
to
e2d15ba
Compare
This comment has been minimized.
This comment has been minimized.
Seems like rustfmt strongly prefers |
File a bug on rustfmt, and add |
I'm not sure this is a bug. It does not come when the macro delimiters are braces ( |
@ChayimFriedman2 It's entirely understandable why it's happening. It's just an issue once |
Ping from triage: |
Two general things happening here:
As such the way rustfmt formats |
So |
@ChayimFriedman2 Ping from triage, what's next steps here? |
What should I do to the tests? |
e2d15ba
to
77817f7
Compare
Done. |
@yaahc can you resolve your concern with rfcbot? |
@rfcbot resolve add tests |
🔔 This is now entering its final comment period, as per the review above. 🔔 |
☔ The latest upstream changes (presumably #87156) made this pull request unmergeable. Please resolve the merge conflicts. |
This is allowed in `match` statement, and stated in https://internals.rust-lang.org/t/leading-pipe-in-core-matches/14699/2 that it should be allowed in these macros too.
1ccedaa
to
f10da9f
Compare
The final comment period, with a disposition to merge, as per the review above, is now complete. As the automated representative of the governance process, I would like to thank the author for their work and everyone else who contributed. The RFC will be merged soon. |
@bors r+ |
📌 Commit f10da9f has been approved by |
☀️ Test successful - checks-actions |
This is allowed in
match
statement, and stated in https://internals.rust-lang.org/t/leading-pipe-in-core-matches/14699/2 that it should be allowed in these macros too.