Skip to content
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

Support other types of pluralization in pluralize macro #94958

Merged
merged 1 commit into from
Mar 15, 2022

Conversation

est31
Copy link
Member

@est31 est31 commented Mar 15, 2022

No description provided.

@rustbot rustbot added the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label Mar 15, 2022
@rust-highfive
Copy link
Collaborator

Some changes occured to the CTFE / Miri engine

cc @rust-lang/miri

@rust-highfive
Copy link
Collaborator

r? @matthewjasper

(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 Mar 15, 2022
@oli-obk
Copy link
Contributor

oli-obk commented Mar 15, 2022

r? @oli-obk

neat!

@bors r+ rollup

@bors
Copy link
Contributor

bors commented Mar 15, 2022

📌 Commit 6285e9207bb98837e9973631aef4109b63bddd00 has been approved by oli-obk

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Mar 15, 2022
@oli-obk oli-obk added A-diagnostics Area: Messages for errors, warnings, and lints S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Mar 15, 2022
@rust-log-analyzer

This comment has been minimized.

@oli-obk
Copy link
Contributor

oli-obk commented Mar 15, 2022

@bors r- looks like some cases actually changed visible behaviour, maybe the previous code had a bug?

@bors bors added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Mar 15, 2022
@est31
Copy link
Member Author

est31 commented Mar 15, 2022

re-r? @oli-obk

@oli-obk
Copy link
Contributor

oli-obk commented Mar 15, 2022

@bors r+ rollup

@bors
Copy link
Contributor

bors commented Mar 15, 2022

📌 Commit 3bf9124 has been approved by oli-obk

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Mar 15, 2022
bors added a commit to rust-lang-ci/rust that referenced this pull request Mar 15, 2022
…askrgr

Rollup of 4 pull requests

Successful merges:

 - rust-lang#94810 (debuginfo: Fix bug in type name generation for dyn types with associated types but no other generic arguments.)
 - rust-lang#94947 (fix typos)
 - rust-lang#94956 (Fix small typo in FIXME)
 - rust-lang#94958 (Support other types of pluralization in pluralize macro)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 183262d into rust-lang:master Mar 15, 2022
@rustbot rustbot added this to the 1.61.0 milestone Mar 15, 2022
Dylan-DPC added a commit to Dylan-DPC/rust that referenced this pull request Mar 16, 2022
…s, r=estebank

Extend the irrefutable_let_patterns lint to let chains

Implements the suggestion from rust-lang#94927 (comment)

We only look for complete suffixes or prefixes of irrefutable let patterns, so
that an irrefutable let pattern in a chain surrounded by refutable ones is
not linted, as it is an useful pattern that has no low-cost replacement (unlike suffixes or prefixes which can just be copied outside of the `if`: either into the `if`'s block, or the block surrounding the `if`).
If all patterns in a let chain are irrefutable, we lint as well.

Depends on rust-lang#94958 ~~so I included it into the PR for now~~ *which has been merged since*.

r? `@estebank`

cc `@joshtriplett` `@c410-f3r`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-diagnostics Area: Messages for errors, warnings, and lints S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants