Skip to content

compiler: use is_none_or where it is clearly better#131815

Merged
bors merged 1 commit into
rust-lang:masterfrom
workingjubilee:did-you-mean-is-none-or
Oct 17, 2024
Merged

compiler: use is_none_or where it is clearly better#131815
bors merged 1 commit into
rust-lang:masterfrom
workingjubilee:did-you-mean-is-none-or

Conversation

@workingjubilee

Copy link
Copy Markdown
Member

heuristic was: if it easily allows removing bangs entirely? worth it. if it requires more effort or just moves the bang? not.

heuristic was: if it easily allows removing bangs entirely? worth it.
if it requires more effort or just moves the bang? not.
@rustbot

rustbot commented Oct 17, 2024

Copy link
Copy Markdown
Collaborator

r? @petrochenkov

rustbot has assigned @petrochenkov.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Oct 17, 2024

@jieyouxu jieyouxu left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems reasonable to me. You can r=me after PR CI is green.

@jieyouxu jieyouxu assigned jieyouxu and unassigned petrochenkov Oct 17, 2024
@workingjubilee

Copy link
Copy Markdown
Member Author

@bors r=jieyouxu

@bors

bors commented Oct 17, 2024

Copy link
Copy Markdown
Collaborator

📌 Commit 47cfaa6 has been approved by jieyouxu

It is now in the queue for this repository.

@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 Oct 17, 2024
bors added a commit to rust-lang-ci/rust that referenced this pull request Oct 17, 2024
…iaskrgr

Rollup of 7 pull requests

Successful merges:

 - rust-lang#128391 (Change orphan hint from "only" to "any uncovered type inside...")
 - rust-lang#131583 (Setting up indirect access to external data for loongarch64-linux-{musl,ohos})
 - rust-lang#131595 (rustdoc-JSON: Rename "object safe" to "dyn compatible")
 - rust-lang#131748 (cleanup canonical queries)
 - rust-lang#131798 (llvm: Tolerate propagated range metadata)
 - rust-lang#131815 (compiler: use `is_none_or` where it is clearly better)
 - rust-lang#131822 (extract `expr_assign_expected_bool_error`)

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 887afd1 into rust-lang:master Oct 17, 2024
@rustbot rustbot added this to the 1.84.0 milestone Oct 17, 2024
rust-timer added a commit to rust-lang-ci/rust that referenced this pull request Oct 17, 2024
Rollup merge of rust-lang#131815 - workingjubilee:did-you-mean-is-none-or, r=jieyouxu

compiler: use `is_none_or` where it is clearly better

heuristic was: if it easily allows removing bangs entirely? worth it. if it requires more effort or just moves the bang? not.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

5 participants