about summary refs log tree commit diff
path: root/library/core/src
diff options
context:
space:
mode:
authorMatthias Kaak <matthias.kaak@smartflyer.de>2023-01-30 19:54:33 +0000
committerMatthias Kaak <matthias.kaak@smartflyer.de>2023-01-30 19:54:33 +0000
commit8d7b092a11df9b0e885f9af93b56759f8012e3ba (patch)
treec2e93778e08c7c55d3393669e1ad957971e9b66e /library/core/src
parente02517d753bae44b2150aa23ab3bca694097ac96 (diff)
downloadrust-8d7b092a11df9b0e885f9af93b56759f8012e3ba.tar.gz
rust-8d7b092a11df9b0e885f9af93b56759f8012e3ba.zip
Improved wording of error messages of missing remainder implementations
Diffstat (limited to 'library/core/src')
-rw-r--r--library/core/src/ops/arith.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/core/src/ops/arith.rs b/library/core/src/ops/arith.rs
index b9803c957b1..cc13db5c956 100644
--- a/library/core/src/ops/arith.rs
+++ b/library/core/src/ops/arith.rs
@@ -545,7 +545,7 @@ div_impl_float! { f32 f64 }
 #[lang = "rem"]
 #[stable(feature = "rust1", since = "1.0.0")]
 #[rustc_on_unimplemented(
-    message = "cannot rem `{Self}` by `{Rhs}`",
+    message = "cannot calculate the remainder of `{Self}` divided by `{Rhs}`",
     label = "no implementation for `{Self} % {Rhs}`"
 )]
 #[doc(alias = "%")]
@@ -981,7 +981,7 @@ div_assign_impl! { usize u8 u16 u32 u64 u128 isize i8 i16 i32 i64 i128 f32 f64 }
 #[lang = "rem_assign"]
 #[stable(feature = "op_assign_traits", since = "1.8.0")]
 #[rustc_on_unimplemented(
-    message = "cannot rem-assign `{Self}` by `{Rhs}``",
+    message = "cannot calculate and assign the remainder of `{Self}` divided by `{Rhs}`",
     label = "no implementation for `{Self} %= {Rhs}`"
 )]
 #[doc(alias = "%")]