@@ -884,13 +884,13 @@ impl<'gcx> HashStable<StableHashingContext<'gcx>> for hir::Item {
884884 fn hash_stable < W : StableHasherResult > ( & self ,
885885 hcx : & mut StableHashingContext < ' gcx > ,
886886 hasher : & mut StableHasher < W > ) {
887- let ( is_const, hash_spans ) = match self . node {
887+ let is_const = match self . node {
888888 hir:: ItemStatic ( ..) |
889889 hir:: ItemConst ( ..) => {
890- ( true , hcx . hash_spans ( ) )
890+ true
891891 }
892892 hir:: ItemFn ( _, _, constness, ..) => {
893- ( constness == hir:: Constness :: Const , hcx . hash_spans ( ) )
893+ constness == hir:: Constness :: Const
894894 }
895895 hir:: ItemUse ( ..) |
896896 hir:: ItemExternCrate ( ..) |
@@ -904,7 +904,7 @@ impl<'gcx> HashStable<StableHashingContext<'gcx>> for hir::Item {
904904 hir:: ItemEnum ( ..) |
905905 hir:: ItemStruct ( ..) |
906906 hir:: ItemUnion ( ..) => {
907- ( false , false )
907+ false
908908 }
909909 } ;
910910
@@ -919,13 +919,11 @@ impl<'gcx> HashStable<StableHashingContext<'gcx>> for hir::Item {
919919 } = * self ;
920920
921921 hcx. hash_hir_item_like ( attrs, is_const, |hcx| {
922- hcx. while_hashing_spans ( hash_spans, |hcx| {
923- name. hash_stable ( hcx, hasher) ;
924- attrs. hash_stable ( hcx, hasher) ;
925- node. hash_stable ( hcx, hasher) ;
926- vis. hash_stable ( hcx, hasher) ;
927- span. hash_stable ( hcx, hasher) ;
928- } ) ;
922+ name. hash_stable ( hcx, hasher) ;
923+ attrs. hash_stable ( hcx, hasher) ;
924+ node. hash_stable ( hcx, hasher) ;
925+ vis. hash_stable ( hcx, hasher) ;
926+ span. hash_stable ( hcx, hasher) ;
929927 } ) ;
930928 }
931929}
0 commit comments