]> git.proxmox.com Git - rustc.git/blobdiff - src/librustc_metadata/index_builder.rs
New upstream version 1.21.0+dfsg1
[rustc.git] / src / librustc_metadata / index_builder.rs
index 2db9c6a4ff811f76df11e4c6f23e71cbc8a8245b..1d2b6cc33d46a0942f968d938049b3bfd758b60a 100644 (file)
@@ -92,7 +92,7 @@ impl<'a, 'b, 'tcx> IndexBuilder<'a, 'b, 'tcx> {
     pub fn new(ecx: &'a mut EncodeContext<'b, 'tcx>) -> Self {
         IndexBuilder {
             items: Index::new(ecx.tcx.hir.definitions().def_index_counts_lo_hi()),
-            ecx: ecx,
+            ecx,
         }
     }
 
@@ -137,7 +137,7 @@ impl<'a, 'b, 'tcx> IndexBuilder<'a, 'b, 'tcx> {
         if let Some(hash) = fingerprint {
             ecx.metadata_hashes.hashes.push(EncodedMetadataHash {
                 def_index: id.index,
-                hash: hash,
+                hash,
             });
         }