-
Notifications
You must be signed in to change notification settings - Fork 13.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hashmap raw_entry crash #56158
Comments
I just double checked, and this is indeed a segfault, not a panic. |
This only seems to happen when the capacity of the hashmap is 0. Using |
cc #56167 |
|
There is no method |
The crash doesn't happen any more since the switch to hashbrown. |
While trying out the experimental hashmap raw entry API, I found that the following code crashes
While the corresponding version using
raw_entry_mut
does not. I'd expect it to returnNone
in this case since the map doesn't even have any items.rustc 1.32.0-nightly (f1e2fa8 2018-11-20)
The text was updated successfully, but these errors were encountered: