-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Re-add support for parsing (and pretty-printing) inner-attributes in match body #85193
Re-add support for parsing (and pretty-printing) inner-attributes in match body #85193
Conversation
…hin body of a `match`. In other words, we can do `match EXPR { #![inner_attr] ARM_1 ARM_2 ... }` again. I believe this unbreaks the only four crates that crater flagged as broken by PR 83312. (I am putting this up so that the lang-team can check it out and decide whether it changes their mind about what to do regarding PR 83312.)
(rust-highfive has picked a reviewer for you, use r? to override) |
nominating for T-lang meeting. If we're moving on this, I want it to happen on the 1.54 release (i.e. when PR #83312 landed). It would be nice to do it without having to beta-backport anything. |
This seems reasonable, and should address the concerns in flight about having removed inner attributes previously. Let's see if we have lang-team consensus on this. Note that this doesn't mean "we want to support attrs here", this is more "we acknowledge that there was breakage here and this fixes that breakage". @rfcbot merge |
Team member @joshtriplett has proposed to merge this. The next step is review by the rest of the tagged team members: No concerns currently listed. 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. |
@rfcbot reviewed I'm not actually fond of inner attributes here, but re-enabling this to fix actual breakage sounds reasonable. |
🔔 This is now entering its final comment period, as per the review above. 🔔 |
If this is going to get into the 1.54 release without a beta-backport, it need to land before Friday 10 June. it was assigning for review by @matthewjasper but I'm not actually sure that auto-assignment made perfect sense. Nominating for (hopefully quick) discussion at today's compiler team meeting, to mainly see if I can pull in someone to do a review with quick turnaround. |
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. |
Nominating for beta since this didn't merge in time. |
We should get this reviewed and merged. Perhaps @petrochenkov or @Aaron1011 could take a look? I'm not sure who is familiar with this area... |
@bors r+ This looks pretty straightforward. |
📌 Commit 8ce761d has been approved by |
☀️ Test successful - checks-actions |
[beta] backports - rustfmt: load nested out-of-line mods correctly rust-lang#86424 - Re-add support for parsing (and pretty-printing) inner-attributes in match body rust-lang#85193 - Revert "List trait impls before methods from deref in the sidebar ..." rust-lang#86564 - Revert "Don't load all extern crates unconditionally" rust-lang#85749 r? `@Mark-Simulacrum`
Re-add support for parsing (and pretty-printing) inner-attributes within body of a
match
.In other words, we can do
match EXPR { #![inner_attr] ARM_1 ARM_2 ... }
again.I believe this unbreaks the only four crates that crater flagged as broken by PR #83312.
(I am putting this up so that the lang-team can check it out and decide whether it changes their mind about what to do regarding PR #83312.)