You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
regression: can't call method abs on ambiguous numeric type {float} #125198
The puffpastry crate's bound includes T: ValidNumber<T>, which includes T: ... + From<f64> + .... Adding T: Copy + From<f64> to the example makes it compile on stable https://rust.godbolt.org/z/EbKTjzM9v
Reacted by Michael Goulet, Trevor Gross and Aleksey
@apiraino I think the only things maybe relevant for release notes would be conversions that involve a stable type, which could have an effect on inference. These would be:
Activity
compiler-errors commentedon May 17, 2024
This was probably regressed w/ some
f16/f128stuff cc @tgross35tgross35 commentedon May 17, 2024
Hm, when did this last work? I can't get it to compile successfully even on older versions https://rust.godbolt.org/z/ExcMY36bf
edit: slightly more like the published test in https://docs.rs/crate/puffpastry/0.1.0/source/src/activation.rs, same results https://rust.godbolt.org/z/crWhqYq6h
zachs18 commentedon May 17, 2024
The
puffpastrycrate's bound includesT: ValidNumber<T>, which includesT: ... + From<f64> + .... AddingT: Copy + From<f64>to the example makes it compile on stable https://rust.godbolt.org/z/EbKTjzM9vtgross35 commentedon May 17, 2024
Ah, then #123830 also should have removed this line https://github.com/rust-lang/rust/pull/123830/files#diff-154dff23a2c2f4fb97915229fd9c27d73293940250088020bfd2074094186ce4L173, which was added in #122470.
Was this crate the only regression of this kind? If that is the case, maybe we would be okay leaving it based on discussion at #123831.
apiraino commentedon May 21, 2024
@tgross35 should the changes in #123830 /
#123831#124728 be inrelnotes? I'm thinking if there are changes here useful to be announced. Thankstgross35 commentedon May 21, 2024
@apiraino I think the only things maybe relevant for release notes would be conversions that involve a stable type, which could have an effect on inference. These would be:
From<f16> for f64added inf16andf128step 4: basic library support #122470, removed in Roll std::run into std::io::process #12380, added back in Remove std::bool::{Bool, all_values} #12473 (1.80 current nightly). Already had a crater run, no regressionsFrom<f32> for f128, added inf16andf128step 4: basic library support #122470 (1.79 current beta). No known regressionsFrom<f64> for f128, added inf16andf128step 4: basic library support #122470 (1.79 current beta). RegressionsItem 3 is the subject of this issue, we'll need a decision about whether to accept the regression or remove the impl.
The remaining conversions from #122470 shouldn't affect anything without nightly so I don't think they need release notes.
apiraino commentedon May 28, 2024
probably adding t-libs then. Opened a topic for increased visibility on Zulip
@rustbot label T-libs
Fix a regression on beta Rust
1 remaining item
apiraino commentedon Aug 5, 2024
I think this can be now closed as accepted, correct? cc @BoxyUwU
tgross35 commentedon Aug 5, 2024
(I feel like we should have something like a regression-accepted label to make the status of these issues clear)
apiraino commentedon Oct 15, 2024
Closing since regression is mentioned in the release notes
Auto merge of rust-lang#138363 - beetrees:f16-f128-integer-convert, r…
Rollup merge of rust-lang#138363 - beetrees:f16-f128-integer-convert,…
Auto merge of rust-lang#138363 - beetrees:f16-f128-integer-convert, r…
Auto merge of rust-lang#138363 - beetrees:f16-f128-integer-convert, r…