Skip to content

Add use of bool::then in sys/unix/process - #95058

Merged
bors merged 1 commit into
rust-lang:masterfrom
wcampbell0x2a:use-then-in-unix-process
Mar 19, 2022
Merged

Add use of bool::then in sys/unix/process#95058
bors merged 1 commit into
rust-lang:masterfrom
wcampbell0x2a:use-then-in-unix-process

Conversation

@wcampbell0x2a

Copy link
Copy Markdown
Contributor

Remove else { None } in favor of using bool::then()

Remove else { None } in favor of using bool::then()
@rust-highfive

Copy link
Copy Markdown
Contributor

r? @joshtriplett

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfiverust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Mar 17, 2022
@dtolnaydtolnay changed the title feat: Add use of bool::then in sys/unix/processAdd use of bool::then in sys/unix/processMar 18, 2022

@dtolnaydtolnay 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.

Nice! Thanks

@dtolnay

Copy link
Copy Markdown
Member

@bors r+ rollup

@bors

bors commented Mar 18, 2022

Copy link
Copy Markdown
Collaborator

📌 Commit b1f3179 has been approved by dtolnay

@borsbors 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 18, 2022
@joshtriplett

Copy link
Copy Markdown
Member

Could you please check how this affects codegen? I expect it to produce effectively the same code, but I would like to make sure.

@wcampbell0x2a

Copy link
Copy Markdown
ContributorAuthor

Could you please check how this affects codegen? I expect it to produce effectively the same code, but I would like to make sure.

Never done that but willing to learn it. What commands do I run for that?

@dtolnay

Copy link
Copy Markdown
Member

Identical according to https://rust.godbolt.org/z/TY5Y39fxr.

@wcampbell0x2a

Copy link
Copy Markdown
ContributorAuthor

Identical according to https://rust.godbolt.org/z/TY5Y39fxr.

sweet

@joshtriplett

Copy link
Copy Markdown
Member

@bors r+

@bors

bors commented Mar 18, 2022

Copy link
Copy Markdown
Collaborator

💡 This pull request was already approved, no need to approve it again.

@bors

bors commented Mar 18, 2022

Copy link
Copy Markdown
Collaborator

📌 Commit b1f3179 has been approved by joshtriplett

bors added a commit to rust-lang-ci/rust that referenced this pull request Mar 18, 2022
…askrgr
Rollup of 7 pull requests
Successful merges:
- rust-lang#94115 (Let `try_collect` take advantage of `try_fold` overrides)
- rust-lang#94295 (Always evaluate all cfg predicate in all() and any())
- rust-lang#94848 (Compare installed browser-ui-test version to the one used in CI)
- rust-lang#94993 (Add test for >65535 hashes in lexing raw string)
- rust-lang#95017 (Derive Eq for std::cmp::Ordering, instead of using manual impl.)
- rust-lang#95058 (Add use of bool::then in sys/unix/process)
- rust-lang#95083 (Document that `Option<extern "abi" fn>` discriminant elision applies for any ABI)
Failed merges:
r? `@ghost`
`@rustbot` modify labels: rollup
@bors
bors merged commit c8cf9e3 into rust-lang:masterMar 19, 2022
@rustbotrustbot added this to the 1.61.0 milestone Mar 19, 2022
@wcampbell0x2a
wcampbell0x2a deleted the use-then-in-unix-process branch March 19, 2022 03:54
@dtolnaydtolnay self-assigned this Mar 24, 2024
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

@wcampbell0x2a@rust-highfive@dtolnay@bors@joshtriplett@rustbot