-
Notifications
You must be signed in to change notification settings - Fork 12.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
std: rewrite Hash to make it more generic
This patch merges IterBytes and Hash traits, which clears up the confusion of using `#[deriving(IterBytes)]` to support hashing. Instead, it now is much easier to use the new `#[deriving(Hash)]` for making a type hashable with a stream hash. Furthermore, it supports custom non-stream-based hashers, such as if a value's hash was cached in a database. This does not yet replace the old IterBytes-hash with this new version.
- Loading branch information
Showing
25 changed files
with
1,154 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
d223dd1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
saw approval from acrichto
at erickt@d223dd1
d223dd1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merging erickt/rust/hash = d223dd1 into auto
d223dd1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
erickt/rust/hash = d223dd1 merged ok, testing candidate = efe7c254
d223dd1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some tests failed:
exception: http://buildbot.rust-lang.org/builders/auto-linux-64-x-android-t/builds/1351
exception: http://buildbot.rust-lang.org/builders/auto-win-32-opt/builds/4404
exception: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-t/builds/3511
d223dd1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
saw approval from acrichto
at erickt@d223dd1
d223dd1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merging erickt/rust/hash = d223dd1 into auto
d223dd1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
erickt/rust/hash = d223dd1 merged ok, testing candidate = ea7afe6e
d223dd1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some tests failed:
failure: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-t/builds/3517
exception: http://buildbot.rust-lang.org/builders/auto-mac-32-opt/builds/4410
exception: http://buildbot.rust-lang.org/builders/auto-mac-32-nopt-t/builds/2253
exception: http://buildbot.rust-lang.org/builders/auto-mac-64-opt/builds/4408
exception: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-t/builds/3514
exception: http://buildbot.rust-lang.org/builders/auto-linux-32-opt/builds/4423
exception: http://buildbot.rust-lang.org/builders/auto-linux-64-opt/builds/4425
exception: http://buildbot.rust-lang.org/builders/auto-linux-64-x-android-t/builds/1364
exception: http://buildbot.rust-lang.org/builders/auto-win-32-opt/builds/4417
exception: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-t/builds/3524