diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-19 09:26:03 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-19 09:26:03 +0000 |
commit | 9918693037dce8aa4bb6f08741b6812923486c18 (patch) | |
tree | 21d2b40bec7e6a7ea664acee056eb3d08e15a1cf /vendor/crypto-bigint/src/limb.rs | |
parent | Releasing progress-linux version 1.75.0+dfsg1-5~progress7.99u1. (diff) | |
download | rustc-9918693037dce8aa4bb6f08741b6812923486c18.tar.xz rustc-9918693037dce8aa4bb6f08741b6812923486c18.zip |
Merging upstream version 1.76.0+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/crypto-bigint/src/limb.rs')
-rw-r--r-- | vendor/crypto-bigint/src/limb.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/vendor/crypto-bigint/src/limb.rs b/vendor/crypto-bigint/src/limb.rs index 73f3feed9..a5ca95704 100644 --- a/vendor/crypto-bigint/src/limb.rs +++ b/vendor/crypto-bigint/src/limb.rs @@ -1,8 +1,6 @@ //! Big integers are represented as an array of smaller CPU word-size integers //! called "limbs". -#![allow(clippy::derive_hash_xor_eq)] - mod add; mod bit_and; mod bit_not; @@ -13,6 +11,7 @@ mod cmp; mod encoding; mod from; mod mul; +mod neg; mod shl; mod shr; mod sub; @@ -59,6 +58,8 @@ pub(crate) const HI_BIT: usize = Limb::BITS - 1; /// Big integers are represented as an array of smaller CPU word-size integers /// called "limbs". +// Our PartialEq impl only differs from the default one by being constant-time, so this is safe +#[allow(clippy::derived_hash_with_manual_eq)] #[derive(Copy, Clone, Default, Hash)] #[repr(transparent)] pub struct Limb(pub Word); |