Skip to content

Conversation

@sfackler
Copy link
Member

@sfackler sfackler commented Jun 8, 2014

Closes #14744

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this is correct, since it is hashing the underlying storage as well as the semantic value. I think this will mean let x = BitvSet::new(); x.insert(1000); x.remove(1000); hashes differently to just BitvSet::new() even though they are semantically identical (see the implementation of PartialEq).

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh yeah

@sfackler
Copy link
Member Author

sfackler commented Jun 8, 2014

@huonw updated. The impl for BitvSet is slower than it could be because I'm not sure there's any guarantee that the BigBitv is as small as possible at all times.

bors added a commit that referenced this pull request Jun 8, 2014
@bors bors closed this Jun 8, 2014
@sfackler sfackler deleted the bitv-hash branch November 26, 2016 05:54
bors added a commit to rust-lang-ci/rust that referenced this pull request Jun 5, 2023
…=lnicola

feat: define problem matcher for panics in VS Code

Now in VS Code "go to next error" (`F8`) will bring you to the source of a panic.
flip1995 pushed a commit to flip1995/rust that referenced this pull request May 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bitv and BitvSet do not implement Hash

4 participants