diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-19 09:25:56 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-19 09:25:56 +0000 |
commit | 018c4950b9406055dec02ef0fb52f132e2bb1e2c (patch) | |
tree | a835ebdf2088ef88fa681f8fad45f09922c1ae9a /vendor/num-traits/src/identities.rs | |
parent | Adding debian version 1.75.0+dfsg1-5. (diff) | |
download | rustc-018c4950b9406055dec02ef0fb52f132e2bb1e2c.tar.xz rustc-018c4950b9406055dec02ef0fb52f132e2bb1e2c.zip |
Merging upstream version 1.76.0+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/num-traits/src/identities.rs')
-rw-r--r-- | vendor/num-traits/src/identities.rs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/vendor/num-traits/src/identities.rs b/vendor/num-traits/src/identities.rs index 7a99566d9..2486cb19e 100644 --- a/vendor/num-traits/src/identities.rs +++ b/vendor/num-traits/src/identities.rs @@ -5,7 +5,7 @@ use core::ops::{Add, Mul}; /// /// # Laws /// -/// ```{.text} +/// ```text /// a + 0 = a ∀ a ∈ Self /// 0 + a = a ∀ a ∈ Self /// ``` @@ -48,7 +48,6 @@ zero_impl!(u8, 0); zero_impl!(u16, 0); zero_impl!(u32, 0); zero_impl!(u64, 0); -#[cfg(has_i128)] zero_impl!(u128, 0); zero_impl!(isize, 0); @@ -56,7 +55,6 @@ zero_impl!(i8, 0); zero_impl!(i16, 0); zero_impl!(i32, 0); zero_impl!(i64, 0); -#[cfg(has_i128)] zero_impl!(i128, 0); zero_impl!(f32, 0.0); @@ -83,7 +81,7 @@ where /// /// # Laws /// -/// ```{.text} +/// ```text /// a * 1 = a ∀ a ∈ Self /// 1 * a = a ∀ a ∈ Self /// ``` @@ -137,7 +135,6 @@ one_impl!(u8, 1); one_impl!(u16, 1); one_impl!(u32, 1); one_impl!(u64, 1); -#[cfg(has_i128)] one_impl!(u128, 1); one_impl!(isize, 1); @@ -145,7 +142,6 @@ one_impl!(i8, 1); one_impl!(i16, 1); one_impl!(i32, 1); one_impl!(i64, 1); -#[cfg(has_i128)] one_impl!(i128, 1); one_impl!(f32, 1.0); |