Skip to content

Conversation

@dtolnay
Copy link
Member

@dtolnay dtolnay commented Nov 1, 2020

punct.as_char() == '░' is pervasive when parsing anything involving punct. I think punct == '░' is sufficiently unambiguous that it makes sense to provide the impl.

TokenTree::Punct(ref tt) if tt.as_char() == '$' => {}

if tt.as_char() == '$' {


@rust-highfive
Copy link
Contributor

r? @petrochenkov

(rust_highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Nov 1, 2020
@jyn514 jyn514 added T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. A-proc-macros Area: Procedural macros T-libs-api Relevant to the library API team, which will review and decide on the PR/issue. and removed T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Nov 1, 2020
@petrochenkov petrochenkov added I-nominated S-waiting-on-team DEPRECATED: Use the team-based variants `S-waiting-on-t-lang`, `S-waiting-on-t-compiler`, ... and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Nov 1, 2020
@dtolnay
Copy link
Member Author

dtolnay commented Nov 1, 2020

@rfcbot fcp merge

@rfcbot
Copy link

rfcbot commented Nov 1, 2020

Team member @dtolnay 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 rfcbot added proposed-final-comment-period Proposed to merge/close by relevant subteam, see T-<team> label. Will enter FCP once signed off. disposition-merge This issue / PR is in PFCP or FCP with a disposition to merge it. labels Nov 1, 2020
@rfcbot rfcbot added final-comment-period In the final comment period and will be merged soon unless new substantive objections are raised. and removed proposed-final-comment-period Proposed to merge/close by relevant subteam, see T-<team> label. Will enter FCP once signed off. labels Nov 12, 2020
@rfcbot
Copy link

rfcbot commented Nov 12, 2020

🔔 This is now entering its final comment period, as per the review above. 🔔

@m-ou-se m-ou-se removed I-nominated S-waiting-on-team DEPRECATED: Use the team-based variants `S-waiting-on-t-lang`, `S-waiting-on-t-compiler`, ... labels Nov 18, 2020
@rfcbot rfcbot added finished-final-comment-period The final comment period is finished for this PR / Issue. to-announce Announce this issue on triage meeting and removed final-comment-period In the final comment period and will be merged soon unless new substantive objections are raised. labels Nov 22, 2020
@rfcbot
Copy link

rfcbot commented Nov 22, 2020

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.

@petrochenkov
Copy link
Contributor

@bors r+

@bors
Copy link
Collaborator

bors commented Nov 23, 2020

📌 Commit 4652032 has been approved by petrochenkov

@bors bors added the S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. label Nov 23, 2020
@bors
Copy link
Collaborator

bors commented Nov 24, 2020

⌛ Testing commit 4652032 with merge cb5b871...

@bors
Copy link
Collaborator

bors commented Nov 24, 2020

☀️ Test successful - checks-actions
Approved by: petrochenkov
Pushing cb5b871 to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Nov 24, 2020
@bors bors merged commit cb5b871 into rust-lang:master Nov 24, 2020
@rustbot rustbot added this to the 1.50.0 milestone Nov 24, 2020
@dtolnay dtolnay deleted the puncteq branch November 24, 2020 22:07
@spastorino spastorino removed the to-announce Announce this issue on triage meeting label Dec 3, 2020
@pthariensflame
Copy link
Contributor

relnotes needed?

Also, doesn't this violate symmetry of PartialEq without a similar-but-flipped impl?

@petrochenkov petrochenkov added the relnotes Marks issues that should be documented in the release notes of the next release. label Jan 1, 2021
@petrochenkov
Copy link
Contributor

Marked with relnotes.

Also, doesn't this violate symmetry of PartialEq without a similar-but-flipped impl?

I assumed coherence wouldn't allow to add such a symmetric impl, but it's actually allowed.

@dtolnay or @pthariensflame, could you make a PR adding impl PartialEq<Punct> for char as well?
Asymmetric PartialEq (at compile time, not runtime) doesn't seem like a big deal to me, but looks like the documentation requires it - https://doc.rust-lang.org/stable/std/cmp/trait.PartialEq.html (the requirement was added in #20065).

@pthariensflame
Copy link
Contributor

I'll make one today.

@dtolnay dtolnay removed the S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. label Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-proc-macros Area: Procedural macros disposition-merge This issue / PR is in PFCP or FCP with a disposition to merge it. finished-final-comment-period The final comment period is finished for this PR / Issue. merged-by-bors This PR was explicitly merged by bors. relnotes Marks issues that should be documented in the release notes of the next release. T-libs-api Relevant to the library API team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants