Skip to content

use UFCS in #[derive(Hash)] #21161

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

Merged
merged 3 commits into from
Jan 16, 2015
Merged

use UFCS in #[derive(Hash)] #21161

merged 3 commits into from
Jan 16, 2015

Conversation

japaric
Copy link
Member

@japaric japaric commented Jan 14, 2015

expansion now uses ::std::hash::Hash::hash(&*__self_0_0, __arg_0) instead of
(*__self_0_0).hash(__arg_0)

closes #21160

r? @alexcrichton

expansion now uses `::std::hash::Hash::hash(&*__self_0_0, __arg_0)` instead of
`(*__self_0_0).hash(__arg_0)`

closes rust-lang#21160
@japaric japaric changed the title use UFCS in #[deriving(Hash)] use UFCS in #[derive(Hash)] Jan 15, 2015
alexcrichton added a commit to alexcrichton/rust that referenced this pull request 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
@bors bors merged commit 28b0d40 into rust-lang:master Jan 16, 2015
@japaric japaric deleted the ufcs-hash branch January 22, 2015 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Derived Hash impl is duck-typed
3 participants