@@ -26,7 +26,7 @@ use rustc::util::common::time;
2626use rustc:: util:: nodemap:: NodeSet ;
2727use rustc_back:: sha2:: { Sha256 , Digest } ;
2828use rustc_borrowck as borrowck;
29- use rustc_incremental:: { self , HashesMap } ;
29+ use rustc_incremental:: { self , IncrementalHashesMap } ;
3030use rustc_resolve:: { MakeGlobMap , Resolver } ;
3131use rustc_metadata:: macro_import;
3232use rustc_metadata:: creader:: read_local_crates;
@@ -172,7 +172,7 @@ pub fn compile_input(sess: &Session,
172172 resolutions,
173173 & arenas,
174174 & crate_name,
175- |tcx, mir_map, analysis, hashes_map , result| {
175+ |tcx, mir_map, analysis, incremental_hashes_map , result| {
176176 {
177177 // Eventually, we will want to track plugins.
178178 let _ignore = tcx. dep_graph . in_ignore ( ) ;
@@ -203,7 +203,7 @@ pub fn compile_input(sess: &Session,
203203 let trans = phase_4_translate_to_llvm ( tcx,
204204 mir_map. unwrap ( ) ,
205205 analysis,
206- & hashes_map ) ;
206+ & incremental_hashes_map ) ;
207207
208208 if log_enabled ! ( :: log:: INFO ) {
209209 println ! ( "Post-trans" ) ;
@@ -798,7 +798,7 @@ pub fn phase_3_run_analysis_passes<'tcx, F, R>(sess: &'tcx Session,
798798 where F : for < ' a > FnOnce ( TyCtxt < ' a , ' tcx , ' tcx > ,
799799 Option < MirMap < ' tcx > > ,
800800 ty:: CrateAnalysis ,
801- HashesMap ,
801+ IncrementalHashesMap ,
802802 CompileResult ) -> R
803803{
804804 macro_rules! try_with_f {
@@ -862,16 +862,16 @@ pub fn phase_3_run_analysis_passes<'tcx, F, R>(sess: &'tcx Session,
862862 index,
863863 name,
864864 |tcx| {
865- let hashes_map =
865+ let incremental_hashes_map =
866866 time ( time_passes,
867- "compute_hashes_map " ,
868- || rustc_incremental:: compute_hashes_map ( tcx) ) ;
867+ "compute_incremental_hashes_map " ,
868+ || rustc_incremental:: compute_incremental_hashes_map ( tcx) ) ;
869869 time ( time_passes,
870870 "load_dep_graph" ,
871- || rustc_incremental:: load_dep_graph ( tcx, & hashes_map ) ) ;
871+ || rustc_incremental:: load_dep_graph ( tcx, & incremental_hashes_map ) ) ;
872872
873873 // passes are timed inside typeck
874- try_with_f ! ( typeck:: check_crate( tcx) , ( tcx, None , analysis, hashes_map ) ) ;
874+ try_with_f ! ( typeck:: check_crate( tcx) , ( tcx, None , analysis, incremental_hashes_map ) ) ;
875875
876876 time ( time_passes,
877877 "const checking" ,
@@ -941,7 +941,7 @@ pub fn phase_3_run_analysis_passes<'tcx, F, R>(sess: &'tcx Session,
941941 // lint warnings and so on -- kindck used to do this abort, but
942942 // kindck is gone now). -nmatsakis
943943 if sess. err_count ( ) > 0 {
944- return Ok ( f ( tcx, Some ( mir_map) , analysis, hashes_map , Err ( sess. err_count ( ) ) ) ) ;
944+ return Ok ( f ( tcx, Some ( mir_map) , analysis, incremental_hashes_map , Err ( sess. err_count ( ) ) ) ) ;
945945 }
946946
947947 analysis. reachable =
@@ -969,18 +969,18 @@ pub fn phase_3_run_analysis_passes<'tcx, F, R>(sess: &'tcx Session,
969969
970970 // The above three passes generate errors w/o aborting
971971 if sess. err_count ( ) > 0 {
972- return Ok ( f ( tcx, Some ( mir_map) , analysis, hashes_map , Err ( sess. err_count ( ) ) ) ) ;
972+ return Ok ( f ( tcx, Some ( mir_map) , analysis, incremental_hashes_map , Err ( sess. err_count ( ) ) ) ) ;
973973 }
974974
975- Ok ( f ( tcx, Some ( mir_map) , analysis, hashes_map , Ok ( ( ) ) ) )
975+ Ok ( f ( tcx, Some ( mir_map) , analysis, incremental_hashes_map , Ok ( ( ) ) ) )
976976 } )
977977}
978978
979979/// Run the translation phase to LLVM, after which the AST and analysis can
980980pub fn phase_4_translate_to_llvm < ' a , ' tcx > ( tcx : TyCtxt < ' a , ' tcx , ' tcx > ,
981981 mut mir_map : MirMap < ' tcx > ,
982982 analysis : ty:: CrateAnalysis ,
983- hashes_map : & HashesMap )
983+ incremental_hashes_map : & IncrementalHashesMap )
984984 -> trans:: CrateTranslation {
985985 let time_passes = tcx. sess . time_passes ( ) ;
986986
@@ -1014,15 +1014,15 @@ pub fn phase_4_translate_to_llvm<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
10141014 let translation =
10151015 time ( time_passes,
10161016 "translation" ,
1017- move || trans:: trans_crate ( tcx, & mir_map, analysis, & hashes_map ) ) ;
1017+ move || trans:: trans_crate ( tcx, & mir_map, analysis, & incremental_hashes_map ) ) ;
10181018
10191019 time ( time_passes,
10201020 "assert dep graph" ,
10211021 move || rustc_incremental:: assert_dep_graph ( tcx) ) ;
10221022
10231023 time ( time_passes,
10241024 "serialize dep graph" ,
1025- move || rustc_incremental:: save_dep_graph ( tcx, & hashes_map ) ) ;
1025+ move || rustc_incremental:: save_dep_graph ( tcx, & incremental_hashes_map ) ) ;
10261026
10271027 translation
10281028}
0 commit comments