diff options
| author | Oliver Schneider <git-spam-no-reply9815368754983@oli-obk.de> | 2018-01-16 09:24:38 +0100 |
|---|---|---|
| committer | Oliver Schneider <git-spam-no-reply9815368754983@oli-obk.de> | 2018-03-08 08:08:14 +0100 |
| commit | 918b6d763319863fb53c5b7bceebc14ad5fb4024 (patch) | |
| tree | 02ca8d896e88377b900153d517665fa7c747b2ab /src/librustc_data_structures | |
| parent | c0574c054c1979a4d77822d4fe36ba7571760b00 (diff) | |
| download | rust-918b6d763319863fb53c5b7bceebc14ad5fb4024.tar.gz rust-918b6d763319863fb53c5b7bceebc14ad5fb4024.zip | |
Produce instead of pointers
Diffstat (limited to 'src/librustc_data_structures')
| -rw-r--r-- | src/librustc_data_structures/stable_hasher.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/librustc_data_structures/stable_hasher.rs b/src/librustc_data_structures/stable_hasher.rs index d82b712b5b1..70733bc6aed 100644 --- a/src/librustc_data_structures/stable_hasher.rs +++ b/src/librustc_data_structures/stable_hasher.rs @@ -259,6 +259,14 @@ impl<CTX> HashStable<CTX> for f64 { } } +impl<CTX> HashStable<CTX> for ::std::cmp::Ordering { + fn hash_stable<W: StableHasherResult>(&self, + ctx: &mut CTX, + hasher: &mut StableHasher<W>) { + (*self as i8).hash_stable(ctx, hasher); + } +} + impl<T1: HashStable<CTX>, CTX> HashStable<CTX> for (T1,) { fn hash_stable<W: StableHasherResult>(&self, ctx: &mut CTX, |
