chore: note: round_ties_even is on stable, but not MSRV yet

Co-Authored-By: Erich Gubler <erichdongubler@gmail.com>
This commit is contained in:
FL33TW00D 2024-10-04 10:12:04 -04:00 committed by Erich Gubler
parent 5032291573
commit f842d80f52

View File

@ -1175,8 +1175,8 @@ impl<'a> ConstantEvaluator<'a> {
component_wise_float!(self, span, [arg], |e| { Ok([e.floor()]) })
}
crate::MathFunction::Round => {
// TODO: Use `f{32,64}.round_ties_even()` when available on stable. This polyfill
// is shamelessly [~~stolen from~~ inspired by `ndarray-image`][polyfill source],
// TODO: this hit stable on 1.77, but MSRV hasn't caught up yet
// This polyfill is shamelessly [~~stolen from~~ inspired by `ndarray-image`][polyfill source],
// which has licensing compatible with ours. See also
// <https://github.com/rust-lang/rust/issues/96710>.
//