]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc/ty/trait_def.rs
Use 128 instead of 64 bits for DefPath hashes
[rust.git] / src / librustc / ty / trait_def.rs
index 865297c7ecbfd5fa67ec69dac06e3b609133e9df..86774136bd6cbc0c07741dd3c83b22b4a8ee8395 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 use hir::def_id::DefId;
+use ich::Fingerprint;
 use traits::specialization_graph;
 use ty::fast_reject;
 use ty::fold::TypeFoldable;
@@ -32,7 +33,7 @@ pub struct TraitDef {
 
     /// The ICH of this trait's DefPath, cached here so it doesn't have to be
     /// recomputed all the time.
-    pub def_path_hash: u64,
+    pub def_path_hash: Fingerprint,
 }
 
 // We don't store the list of impls in a flat list because each cached list of
@@ -94,7 +95,7 @@ pub fn new(def_id: DefId,
                unsafety: hir::Unsafety,
                paren_sugar: bool,
                has_default_impl: bool,
-               def_path_hash: u64)
+               def_path_hash: Fingerprint)
                -> TraitDef {
         TraitDef {
             def_id,