From 4379dc141daa6779bdbee307e03431965532cb73 Mon Sep 17 00:00:00 2001 From: Faith Ekstrand Date: Fri, 5 Jun 2026 13:00:15 -0400 Subject: [PATCH] compiler/rust/bitset: Implement Eq and PartialEq for ConstBitSet Part-of: --- src/compiler/rust/bitset.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/rust/bitset.rs b/src/compiler/rust/bitset.rs index d27383bd0a2..6e16992ceea 100644 --- a/src/compiler/rust/bitset.rs +++ b/src/compiler/rust/bitset.rs @@ -184,7 +184,7 @@ fn find_next_unset(words: &[u32], start: BitIndex) -> BitIndex { /// The fixed size W is in units of 32-bit words. This is due to a Rust /// restriction which prevents us from doing math on constants which size /// arrays. -#[derive(Clone, Copy)] +#[derive(Clone, Copy, Eq, PartialEq)] pub struct ConstBitSet { words: [u32; W], phantom: PhantomData,