]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #50207 - wesleywiser:hash_const_data, r=eddyb
authorGuillaume Gomez <guillaume1.gomez@gmail.com>
Thu, 26 Apr 2018 08:11:14 +0000 (10:11 +0200)
committerGitHub <noreply@github.com>
Thu, 26 Apr 2018 08:11:14 +0000 (10:11 +0200)
Hash EntryKind::AssociatedConst const data

Related to #49991
r? @michaelwoerister
cc @eddyb

src/librustc_metadata/schema.rs

index 5d6db1abe7b68f0663ba66cdd4234e5d6c7e366e..ddeb797f1bef5282564548030048839b7a3ccc39 100644 (file)
@@ -373,9 +373,10 @@ fn hash_stable<W: StableHasherResult>(&self,
             EntryKind::AssociatedType(associated_container) => {
                 associated_container.hash_stable(hcx, hasher);
             }
-            EntryKind::AssociatedConst(associated_container, qualif, _) => {
+            EntryKind::AssociatedConst(associated_container, qualif, ref const_data) => {
                 associated_container.hash_stable(hcx, hasher);
                 qualif.hash_stable(hcx, hasher);
+                const_data.hash_stable(hcx, hasher);
             }
         }
     }