about summary refs log tree commit diff
path: root/src/librustc_data_structures
diff options
context:
space:
mode:
authorMichael Woerister <michaelwoerister@posteo>2017-09-18 12:14:52 +0200
committerMichael Woerister <michaelwoerister@posteo>2017-09-18 12:14:52 +0200
commit74d6b850fd731597fe2f03408a0397a972c13641 (patch)
tree8bad0564fefd57cc91f7efa63cb7a6801fa5cc61 /src/librustc_data_structures
parentd5b1fee6fd658bf464902d46f9a6c9c2f8ab87d7 (diff)
incr.comp.: Fix rebase fallout.
Diffstat (limited to 'src/librustc_data_structures')
-rw-r--r--src/librustc_data_structures/stable_hasher.rs8
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 e18c1969a91..f6b23af2f73 100644
--- a/src/librustc_data_structures/stable_hasher.rs
+++ b/src/librustc_data_structures/stable_hasher.rs
@@ -386,6 +386,14 @@ impl<CTX> HashStable<CTX> for String {
     }
 }
 
+impl<HCX> ToStableHashKey<HCX> for String {
+    type KeyType = String;
+    #[inline]
+    fn to_stable_hash_key(&self, _: &HCX) -> Self::KeyType {
+        self.clone()
+    }
+}
+
 impl<CTX> HashStable<CTX> for bool {
     #[inline]
     fn hash_stable<W: StableHasherResult>(&self,