Skip to content

Commit

Permalink
chore: note: round_ties_even is on stable, but not MSRV yet
Browse files Browse the repository at this point in the history
Co-Authored-By: Erich Gubler <erichdongubler@gmail.com>
  • Loading branch information
FL33TW00D and ErichDonGubler committed Oct 12, 2024
1 parent 6bd2e0b commit ed9df89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions naga/src/proc/constant_evaluator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>.
//
Expand Down

0 comments on commit ed9df89

Please sign in to comment.