@@ -30,7 +30,7 @@ use rustc::traits;
3030use rustc:: util:: common:: { ErrorReported , time} ;
3131use rustc_allocator as allocator;
3232use rustc_borrowck as borrowck;
33- use rustc_incremental:: { self , IncrementalHashesMap } ;
33+ use rustc_incremental;
3434use rustc_resolve:: { MakeGlobMap , Resolver } ;
3535use rustc_metadata:: creader:: CrateLoader ;
3636use rustc_metadata:: cstore:: { self , CStore } ;
@@ -218,7 +218,7 @@ pub fn compile_input(sess: &Session,
218218 & arenas,
219219 & crate_name,
220220 & outputs,
221- |tcx, analysis, incremental_hashes_map , rx, result| {
221+ |tcx, analysis, rx, result| {
222222 {
223223 // Eventually, we will want to track plugins.
224224 let _ignore = tcx. dep_graph . in_ignore ( ) ;
@@ -246,9 +246,7 @@ pub fn compile_input(sess: &Session,
246246 tcx. print_debug_stats ( ) ;
247247 }
248248
249- let trans = phase_4_translate_to_llvm ( tcx,
250- incremental_hashes_map,
251- rx) ;
249+ let trans = phase_4_translate_to_llvm ( tcx, rx) ;
252250
253251 if log_enabled ! ( :: log:: LogLevel :: Info ) {
254252 println ! ( "Post-trans" ) ;
@@ -921,7 +919,6 @@ pub fn phase_3_run_analysis_passes<'tcx, F, R>(sess: &'tcx Session,
921919 -> Result < R , CompileIncomplete >
922920 where F : for < ' a > FnOnce ( TyCtxt < ' a , ' tcx , ' tcx > ,
923921 ty:: CrateAnalysis ,
924- IncrementalHashesMap ,
925922 mpsc:: Receiver < Box < Any + Send > > ,
926923 CompileResult ) -> R
927924{
@@ -1053,22 +1050,16 @@ pub fn phase_3_run_analysis_passes<'tcx, F, R>(sess: &'tcx Session,
10531050 tx,
10541051 output_filenames,
10551052 |tcx| {
1056- let incremental_hashes_map =
1057- time ( time_passes,
1058- "compute_incremental_hashes_map" ,
1059- || rustc_incremental:: compute_incremental_hashes_map ( tcx) ) ;
1060-
10611053 time ( time_passes,
10621054 "load_dep_graph" ,
1063- || rustc_incremental:: load_dep_graph ( tcx, & incremental_hashes_map ) ) ;
1055+ || rustc_incremental:: load_dep_graph ( tcx) ) ;
10641056
10651057 time ( time_passes,
10661058 "stability checking" ,
10671059 || stability:: check_unstable_api_usage ( tcx) ) ;
10681060
10691061 // passes are timed inside typeck
1070- try_with_f ! ( typeck:: check_crate( tcx) ,
1071- ( tcx, analysis, incremental_hashes_map, rx) ) ;
1062+ try_with_f ! ( typeck:: check_crate( tcx) , ( tcx, analysis, rx) ) ;
10721063
10731064 time ( time_passes,
10741065 "const checking" ,
@@ -1112,7 +1103,7 @@ pub fn phase_3_run_analysis_passes<'tcx, F, R>(sess: &'tcx Session,
11121103 // lint warnings and so on -- kindck used to do this abort, but
11131104 // kindck is gone now). -nmatsakis
11141105 if sess. err_count ( ) > 0 {
1115- return Ok ( f ( tcx, analysis, incremental_hashes_map , rx, sess. compile_status ( ) ) ) ;
1106+ return Ok ( f ( tcx, analysis, rx, sess. compile_status ( ) ) ) ;
11161107 }
11171108
11181109 time ( time_passes, "death checking" , || middle:: dead:: check_crate ( tcx) ) ;
@@ -1123,14 +1114,13 @@ pub fn phase_3_run_analysis_passes<'tcx, F, R>(sess: &'tcx Session,
11231114
11241115 time ( time_passes, "lint checking" , || lint:: check_crate ( tcx) ) ;
11251116
1126- return Ok ( f ( tcx, analysis, incremental_hashes_map , rx, tcx. sess . compile_status ( ) ) ) ;
1117+ return Ok ( f ( tcx, analysis, rx, tcx. sess . compile_status ( ) ) ) ;
11271118 } )
11281119}
11291120
11301121/// Run the translation phase to LLVM, after which the AST and analysis can
11311122/// be discarded.
11321123pub fn phase_4_translate_to_llvm < ' a , ' tcx > ( tcx : TyCtxt < ' a , ' tcx , ' tcx > ,
1133- incremental_hashes_map : IncrementalHashesMap ,
11341124 rx : mpsc:: Receiver < Box < Any + Send > > )
11351125 -> write:: OngoingCrateTranslation {
11361126 let time_passes = tcx. sess . time_passes ( ) ;
@@ -1141,7 +1131,7 @@ pub fn phase_4_translate_to_llvm<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
11411131
11421132 let translation =
11431133 time ( time_passes, "translation" , move || {
1144- trans:: trans_crate ( tcx, incremental_hashes_map , rx)
1134+ trans:: trans_crate ( tcx, rx)
11451135 } ) ;
11461136
11471137 if tcx. sess . profile_queries ( ) {
0 commit comments