-
Couldn't load subscription status.
- Fork 13.9k
Rollup of 7 pull requests #55194
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
Rollup of 7 pull requests #55194
Conversation
This patch adds a `copysign` function to the float primitive types. It is an exceptionally useful function for writing efficient numeric code, as it often avoids branches, is auto-vectorizable, and there are efficient intrinsics for most platforms. I think this might work as-is, as the relevant `copysign` intrinsic is already used internally for the implementation of `signum`. It's possible that an implementation might be needed in japaric/libm for portability across all platforms, in which case I'll do that also. Part of the work towards rust-lang#55107
I improved the f32 version and made a copy-paste error for f64.
Added a #[must_use] annotation on copysign, per review feedback.
Updated RELEASES.md for 1.30.0 [Rendered](https://github.com/Aaronepower/rust/blob/master/RELEASES.md) r? @Mark-Simulacrum cc @rust-lang/release
|
@bors r+ p=9 |
|
📌 Commit 3813db1154808a373f7a9957e4d6314dde9bcd69 has been approved by |
|
⌛ Testing commit 3813db1154808a373f7a9957e4d6314dde9bcd69 with merge 539c9983dbc841dff5850e5442eb66cc94ee83ea... |
|
💔 Test failed - status-appveyor |
Fix ICE and report a human readable error fixes rust-lang#55063 r? @RalfJung
Cleanup resolve - improve/remove allocations - `truncate` instead of `pop`ping in a loop - improve common patterns
Don't warn about parentheses on `match (return)` Fixes rust-lang#55164.
Add a `copysign` function to f32 and f64 This patch adds a `copysign` function to the float primitive types. It is an exceptionally useful function for writing efficient numeric code, as it often avoids branches, is auto-vectorizable, and there are efficient intrinsics for most platforms. I think this might work as-is, as the relevant `copysign` intrinsic is already used internally for the implementation of `signum`. It's possible that an implementation might be needed in japaric/libm for portability across all platforms, in which case I'll do that also. Part of the work towards rust-lang#55107
…lexcrichton Stabilize slice::chunks_exact(), chunks_exact_mut(), rchunks(), rchunks_mut(), rchunks_exact(), rchunks_exact_mut() Fixes rust-lang#47115, rust-lang#55177
…ounds, r=nikomatsakis [NLL] Propagate bounds from generators This used to only be done for closures.
|
📌 Commit 0724efd has been approved by |
Rollup of 7 pull requests Successful merges: - #54300 (Updated RELEASES.md for 1.30.0) - #55013 ([NLL] Propagate bounds from generators) - #55071 (Fix ICE and report a human readable error) - #55144 (Cleanup resolve) - #55166 (Don't warn about parentheses on `match (return)`) - #55169 (Add a `copysign` function to f32 and f64) - #55178 (Stabilize slice::chunks_exact(), chunks_exact_mut(), rchunks(), rchunks_mut(), rchunks_exact(), rchunks_exact_mut())
|
☀️ Test successful - status-appveyor, status-travis |
Successful merges:
match (return)#55166 (Don't warn about parentheses onmatch (return))copysignfunction to f32 and f64 #55169 (Add acopysignfunction to f32 and f64)