@@ -884,13 +884,13 @@ impl<'gcx> HashStable<StableHashingContext<'gcx>> for hir::Item {
884
884
fn hash_stable < W : StableHasherResult > ( & self ,
885
885
hcx : & mut StableHashingContext < ' gcx > ,
886
886
hasher : & mut StableHasher < W > ) {
887
- let ( is_const, hash_spans ) = match self . node {
887
+ let is_const = match self . node {
888
888
hir:: ItemStatic ( ..) |
889
889
hir:: ItemConst ( ..) => {
890
- ( true , hcx . hash_spans ( ) )
890
+ true
891
891
}
892
892
hir:: ItemFn ( _, _, constness, ..) => {
893
- ( constness == hir:: Constness :: Const , hcx . hash_spans ( ) )
893
+ constness == hir:: Constness :: Const
894
894
}
895
895
hir:: ItemUse ( ..) |
896
896
hir:: ItemExternCrate ( ..) |
@@ -904,7 +904,7 @@ impl<'gcx> HashStable<StableHashingContext<'gcx>> for hir::Item {
904
904
hir:: ItemEnum ( ..) |
905
905
hir:: ItemStruct ( ..) |
906
906
hir:: ItemUnion ( ..) => {
907
- ( false , false )
907
+ false
908
908
}
909
909
} ;
910
910
@@ -919,13 +919,11 @@ impl<'gcx> HashStable<StableHashingContext<'gcx>> for hir::Item {
919
919
} = * self ;
920
920
921
921
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) ;
929
927
} ) ;
930
928
}
931
929
}
0 commit comments