diff options
| author | Kurt Heiritz (pseudo) <saarthkarkera@gmail.com> | 2025-06-26 10:41:27 +0530 |
|---|---|---|
| committer | Jubilee Young <workingjubilee@gmail.com> | 2025-07-04 16:40:45 -0700 |
| commit | 2d1aa582254e87b06c0805e6c3dcc4559bc7924c (patch) | |
| tree | 1d4847c823e8faf595b5dd6db84f5bb6713cf9cd | |
| parent | bc4376fa73b636eb6f2c7d48b1f731d70f022c4b (diff) | |
| download | rust-2d1aa582254e87b06c0805e6c3dcc4559bc7924c.tar.gz rust-2d1aa582254e87b06c0805e6c3dcc4559bc7924c.zip | |
Make Rem const for floats
| -rw-r--r-- | library/core/src/ops/arith.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/ops/arith.rs b/library/core/src/ops/arith.rs index 7ffde233da3..e53c128efe0 100644 --- a/library/core/src/ops/arith.rs +++ b/library/core/src/ops/arith.rs @@ -627,7 +627,7 @@ macro_rules! rem_impl_float { /// ``` #[stable(feature = "rust1", since = "1.0.0")] #[rustc_const_unstable(feature = "const_ops", issue = "90080")] - impl Rem for $t { + impl const Rem for $t { type Output = $t; #[inline] |
