-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Add use of bool::then in sys/unix/process #95058
Conversation
Remove else { None } in favor of using bool::then()
(rust-highfive has picked a reviewer for you, use r? to override) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! Thanks
@bors r+ rollup |
📌 Commit b1f3179 has been approved by |
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? |
Identical according to https://rust.godbolt.org/z/TY5Y39fxr. |
sweet |
@bors r+ |
💡 This pull request was already approved, no need to approve it again.
|
📌 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()