-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
small improvements to interning #5153
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
This second commit is the smallest change I have found that reproduces the test fails. It took several trys to find something this small. I still don't see why it is problematic. @alexcrichton any thoughts on how this is wrong? |
I don't know what is going on with nightly and beta, that is not the error I see locally. |
Aha! I believe the problem is that the hash value for an Perhaps the |
Ah and for nightly/beta feel free to just remove the |
Thanks! That seems to have fixed it. It was nice to have constant time hashing, but I think the inconsistent hash is too much of a foot gun to leave in. |
Closed? |
Ya you identified the bug, which fixed the more ambitious versions. When I have had a chance to polish one of them, it will come in as a new PR. |
Aha I see! |
In #5121 Eh2406@411355a I tried to use the
InternedString
In more places, but test failed so that commit was backed out. This PR is an attempt to redo that in tiny steps, so as to track down exactly what caused the error.The first commit hear, is just some housekeeping. This should still be green.