@@ -3,7 +3,7 @@ use std::mem;
33use std:: sync:: Arc ;
44
55use rustc_data_structures:: fingerprint:: Fingerprint ;
6- use rustc_data_structures:: stable_hasher:: { HashStable , StableHasher } ;
6+ use rustc_data_structures:: stable_hasher:: { StableHash , StableHasher } ;
77use rustc_data_structures:: svh:: Svh ;
88use rustc_hir:: attrs:: Deprecation ;
99use rustc_hir:: def:: { CtorKind , DefKind } ;
@@ -807,10 +807,10 @@ pub(super) fn crate_hash(tcx: TyCtxt<'_>) -> Svh {
807807
808808 let crate_hash: Fingerprint = tcx. with_stable_hashing_context ( |mut hcx| {
809809 let mut stable_hasher = StableHasher :: new ( ) ;
810- hir_body_hash. hash_stable ( & mut hcx, & mut stable_hasher) ;
811- upstream_crates. hash_stable ( & mut hcx, & mut stable_hasher) ;
812- //source_file_names.hash_stable (&mut hcx, &mut stable_hasher);
813- //debugger_visualizers.hash_stable (&mut hcx, &mut stable_hasher);
810+ hir_body_hash. stable_hash ( & mut hcx, & mut stable_hasher) ;
811+ upstream_crates. stable_hash ( & mut hcx, & mut stable_hasher) ;
812+ //source_file_names.stable_hash (&mut hcx, &mut stable_hasher);
813+ //debugger_visualizers.stable_hash (&mut hcx, &mut stable_hasher);
814814 if tcx. sess . opts . incremental . is_some ( ) {
815815 let definitions = tcx. untracked ( ) . definitions . freeze ( ) ;
816816 let mut owner_spans: Vec < _ > = tcx
@@ -824,17 +824,17 @@ pub(super) fn crate_hash(tcx: TyCtxt<'_>) -> Svh {
824824 } )
825825 . collect ( ) ;
826826 owner_spans. sort_unstable_by_key ( |bn| bn. 0 ) ;
827- owner_spans. hash_stable ( & mut hcx, & mut stable_hasher) ;
827+ owner_spans. stable_hash ( & mut hcx, & mut stable_hasher) ;
828828 }
829- tcx. sess . opts . dep_tracking_hash ( true ) . hash_stable ( & mut hcx, & mut stable_hasher) ;
830- tcx. stable_crate_id ( LOCAL_CRATE ) . hash_stable ( & mut hcx, & mut stable_hasher) ;
829+ tcx. sess . opts . dep_tracking_hash ( true ) . stable_hash ( & mut hcx, & mut stable_hasher) ;
830+ tcx. stable_crate_id ( LOCAL_CRATE ) . stable_hash ( & mut hcx, & mut stable_hasher) ;
831831 // Hash visibility information since it does not appear in HIR.
832832 // FIXME: Figure out how to remove `visibilities_for_hashing` by hashing visibilities on
833833 // the fly in the resolver, storing only their accumulated hash in `ResolverGlobalCtxt`,
834834 // and combining it with other hashes here.
835- //resolutions.visibilities_for_hashing.hash_stable (&mut hcx, &mut stable_hasher);
835+ //resolutions.visibilities_for_hashing.stable_hash (&mut hcx, &mut stable_hasher);
836836 /*with_metavar_spans(|mspans| {
837- mspans.freeze_and_get_read_spans().hash_stable (&mut hcx, &mut stable_hasher);
837+ mspans.freeze_and_get_read_spans().stable_hash (&mut hcx, &mut stable_hasher);
838838 });*/
839839 stable_hasher. finish ( )
840840 } ) ;
0 commit comments