mirror of
https://github.com/apple/swift-collections
synced 2026-11-24 04:27:53 +00:00
_rawHashValue(seed:) looped on nextSpan() without checking for the empty span the iterator returns once it is exhausted, so hashing any RigidSet or UniqueSet spun forever. Break on an empty span, as == does. Add test_hashable for both types, modeled on RigidArrayTests: equal sets built with different capacities and insertion orders must hash equally. Both tests hang without the fix. Fixes #765. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>