-
Notifications
You must be signed in to change notification settings - Fork 49
Early return in the slow path of put
if key already exists and no_replacement
is true
#91
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
Conversation
Codecov Report
|
Interesting. The failure on the warning screening seems to be because |
Ah, good catch! And 👍 to adding And yes, the lint has been renamed to |
Added the suggested name change and also updated the lint. Interestingly, on my machine I get the warning for the lint the other way round now :D |
Ah, it's probably just because you have a slightly older nightly locally which doesn't have that latest rename PR merged! |
If it's only changed on nightly than that'll be it, I'm on stable for most things that don't rely on unstable features 👍 |
Everything but Miri ran I think, and Miri timed out last time if I remember correctly - you fine with merging? |
Hmm, miri timing out isn't great. My guess is that it's because this new regression test runs for so many iterations. Iif the test truly requires this many iterations to reproduce the issue, then just use a different number of iterations for miri. You can use |
Oh, you think? I thought some other stuff like the stress test were pretty large as well, but seems we already have some miri-dependent tests too. Updating again. This keeps the original number for non-miri tests, since it runs pretty quickly and the intention is to (hopefully) exercise both the regular and the tree bin path, for which we need some collisions. |
I believe the stress tests are already |
They are ignored completely it seems. Other tests have smaller ranges and such. In any case, seems to have been it! |
Early return with an indication that the requested key already existed and a reference back to the value trying to be inserted.
Fixes #90.
I also took the liberty to add a new
issues.rs
test file to contain reproducible bugs that should now be fixed, so we will know should they appear again.This change is