Skip to content

Conversation

GarmashAlex
Copy link
Contributor

Align SourceFileRef hashing with its equality and ordering semantics by removing span from the hash and hashing only the selected string. Previously, PartialEq/Ord compared only as_str(), while Hash mixed in both span and as_str(), violating the Eq/Hash contract and risking incorrect behavior in hash-based collections. This change ensures that equal values produce identical hashes and matches the pattern used by Span.

@bitwalker bitwalker added the no changelog This PR does not require an entry in the `CHANGELOG.md` file label Sep 22, 2025
@bitwalker bitwalker merged commit 35c2d3b into 0xMiden:next Sep 22, 2025
11 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no changelog This PR does not require an entry in the `CHANGELOG.md` file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants