-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Delegate debug implementation for InternedString #5184
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
✌️ @Eh2406 can now approve this pull request |
I originally added the extra verbiage to help debugging cases were |
📌 Commit 111024c has been approved by |
Delegate debug implementation for InternedString Let's make `InternedString` debug implementation the same as for `String` / `str`? It's more concise, which helps when you debug printing other stuff, like `eprintln!("id = {:?}", a_package_id)`.
Hm, @Eh2406, could we implement |
Yes it could, and I'd be open to a PR that does.
So we would switch from overriding hash to overriding EQ. |
I think this is could be implemented if we store |
☀️ Test successful - status-appveyor, status-travis |
Completely agree, that would work. |
Let's make
InternedString
debug implementation the same as forString
/str
? It's more concise, which helps when you debug printing other stuff, likeeprintln!("id = {:?}", a_package_id)
.