diff options
| author | bors <bors@rust-lang.org> | 2014-07-29 04:26:42 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-07-29 04:26:42 +0000 |
| commit | f653d9f9bf9b69211226dabd13db188afd6b1fdb (patch) | |
| tree | 54ba292ec5b734b90a59fd5823a9df29eae7836f /src/rustllvm/RustWrapper.cpp | |
| parent | 9e250109f9d40deefbca1a42f602d3f0b59ca1e6 (diff) | |
| parent | e7b41caba8b968450717b487087b5a2cdc10461a (diff) | |
| download | rust-f653d9f9bf9b69211226dabd13db188afd6b1fdb.tar.gz rust-f653d9f9bf9b69211226dabd13db188afd6b1fdb.zip | |
auto merge of #16033 : nham/rust/hash_tuple_impl, r=alexcrichton
Previously the implementation of Hash was limited to tuples of up to arity 8. This increases it to tuples of up to arity 12.
Also, the implementation macro for `Hash` used to expand to something like this:
impl Hash for (a7,)
impl Hash for (a6, a7)
impl Hash for (a5, a6, a7)
...
This style is inconsistent with the implementations in core::tuple, which look like this:
impl Trait for (A,)
impl Trait for (A, B)
impl Trait for (A, B, C)
...
This is perhaps a minor point, but it does mean the documentation pages are inconsistent. Compare the tuple implementations in the documentation for [Hash](http://static.rust-lang.org/doc/master/std/hash/trait.Hash.html) and [PartialOrd](http://static.rust-lang.org/doc/master/core/cmp/trait.PartialOrd.html)
This changes the Hash implementation to be consistent with `core::tuple`.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
