-
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
Re-add From<f16> for f64
#124728
Re-add From<f16> for f64
#124728
Conversation
r? libs-api |
I agree with the reasoning here, but I'd like to be cautious and do a crater run. Since this is an unstable API, r=me if the crater run doesn't reveal anything. @bors try |
Re-add `From<f16> for f64` This impl was originally added in rust-lang#122470 before being removed in rust-lang#123830 due to rust-lang#123831. However, the issue only affects `f32` (which currently only has one `From<{float}>` impl, `From<f32>`) as `f64` already has two `From<{float}>` impls (`From<f32>` and `From<f64>`) and is also the float literal fallback type anyway. Therefore it is safe to re-add `From<f16> for f64`. This PR also updates the FIXME link to point to the open issue rust-lang#123831 rather than the closed issue rust-lang#123824. Tracking issue: rust-lang#116909 `@rustbot` label +F-f16_and_f128 +T-libs-api
☀️ Try build successful - checks-actions |
@craterbot check |
👌 Experiment ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more |
Just FYI I removed this intentionally since it seemed inconsistent to have |
I just thought it seemed inconsistent not to have it since |
🚧 Experiment ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more |
🎉 Experiment
|
Only regression is spurious:
|
Okey dokey. Good enough for me. @bors r+ |
☀️ Test successful - checks-actions |
Finished benchmarking commit (2d89cee): comparison URL. Overall result: ❌ regressions - no action needed@rustbot label: -perf-regression Instruction countThis is a highly reliable metric that was used to determine the overall result at the top of this comment.
Max RSS (memory usage)Results (primary 2.8%, secondary -4.3%)This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesThis benchmark run did not return any relevant results for this metric. Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 677.731s -> 682.198s (0.66%) |
This impl was originally added in #122470 before being removed in #123830 due to #123831. However, the issue only affects
f32
(which currently only has oneFrom<{float}>
impl,From<f32>
) asf64
already has twoFrom<{float}>
impls (From<f32>
andFrom<f64>
) and is also the float literal fallback type anyway. Therefore it is safe to re-addFrom<f16> for f64
.This PR also updates the FIXME link to point to the open issue #123831 rather than the closed issue #123824.
Tracking issue: #116909
@rustbot label +F-f16_and_f128 +T-libs-api