-
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
regression: can't call method abs
on ambiguous numeric type {float}
#125198
Comments
This was probably regressed w/ some |
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 |
The |
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 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:
Item 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. |
This bit of code relies on behavior that will no longer work in Rust 1.79, which is currently in beta. Since this crate was the only regression, the behavior change was considered acceptable, but does mean that this crate has a minor breakage in tests. Add a concrete type to the vector to correct for this behavior change. See the context here: rust-lang/rust#125198
Per https://rust-lang.zulipchat.com/#narrow/stream/259402-t-libs.2Fmeetings/topic/Meeting.202024-05-29/near/441273130, this regression is accepted. I submitted a PR to the regressed crate here uek-1/puffpastry#4 |
I think this can be now closed as accepted, correct? cc @BoxyUwU |
(I feel like we should have something like a regression-accepted label to make the status of these issues clear) |
Closing since regression is mentioned in the release notes |
The text was updated successfully, but these errors were encountered: