-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Derived Hash
impl is duck-typed
#21160
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
Comments
I'm working on a fix for this. |
japaric
pushed a commit
to japaric/rust
that referenced
this issue
Jan 14, 2015
expansion now uses `::std::hash::Hash::hash(&*__self_0_0, __arg_0)` instead of `(*__self_0_0).hash(__arg_0)` closes rust-lang#21160
fix in #21161 @apasel422 sorry, didn't see your message! I should've left a comment here |
@japaric That's OK! Glad it's fixed. We should make sure the other deriving implementations don't suffer from the same problem. |
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Jan 15, 2015
expansion now uses `::std::hash::Hash::hash(&*__self_0_0, __arg_0)` instead of `(*__self_0_0).hash(__arg_0)` closes rust-lang#21160 r? @alexcrichton
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following compiles successfully with
rustc 1.0.0-nightly (170c4399e 2015-01-14 00:41:55 +0000)
:The derived code should probably use UFCS.
The text was updated successfully, but these errors were encountered: