Uh oh!
There was an error while loading. Please reload this page.
Add use of bool::then in sys/unix/process - #95058
Conversation
Remove else { None } in favor of using bool::then()rust-highfive
commented
Mar 17, 2022
(rust-highfive has picked a reviewer for you, use r? to override) |
dtolnay
commented
Mar 18, 2022
@bors r+ rollup |
bors
commented
Mar 18, 2022
📌 Commit b1f3179 has been approved by |
joshtriplett
commented
Mar 18, 2022
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
commented
Mar 18, 2022
Never done that but willing to learn it. What commands do I run for that? |
dtolnay
commented
Mar 18, 2022
Identical according to https://rust.godbolt.org/z/TY5Y39fxr. |
wcampbell0x2a
commented
Mar 18, 2022
sweet |
joshtriplett
commented
Mar 18, 2022
@bors r+ |
bors
commented
Mar 18, 2022
💡 This pull request was already approved, no need to approve it again.
|
bors
commented
Mar 18, 2022
📌 Commit b1f3179 has been approved by |
…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
Remove
else { None }in favor of usingbool::then()