@@ -30,7 +30,7 @@ use rustc::traits;
30
30
use rustc:: util:: common:: { ErrorReported , time} ;
31
31
use rustc_allocator as allocator;
32
32
use rustc_borrowck as borrowck;
33
- use rustc_incremental:: { self , IncrementalHashesMap } ;
33
+ use rustc_incremental;
34
34
use rustc_resolve:: { MakeGlobMap , Resolver } ;
35
35
use rustc_metadata:: creader:: CrateLoader ;
36
36
use rustc_metadata:: cstore:: { self , CStore } ;
@@ -218,7 +218,7 @@ pub fn compile_input(sess: &Session,
218
218
& arenas,
219
219
& crate_name,
220
220
& outputs,
221
- |tcx, analysis, incremental_hashes_map , rx, result| {
221
+ |tcx, analysis, rx, result| {
222
222
{
223
223
// Eventually, we will want to track plugins.
224
224
let _ignore = tcx. dep_graph . in_ignore ( ) ;
@@ -246,9 +246,7 @@ pub fn compile_input(sess: &Session,
246
246
tcx. print_debug_stats ( ) ;
247
247
}
248
248
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) ;
252
250
253
251
if log_enabled ! ( :: log:: LogLevel :: Info ) {
254
252
println ! ( "Post-trans" ) ;
@@ -921,7 +919,6 @@ pub fn phase_3_run_analysis_passes<'tcx, F, R>(sess: &'tcx Session,
921
919
-> Result < R , CompileIncomplete >
922
920
where F : for < ' a > FnOnce ( TyCtxt < ' a , ' tcx , ' tcx > ,
923
921
ty:: CrateAnalysis ,
924
- IncrementalHashesMap ,
925
922
mpsc:: Receiver < Box < Any + Send > > ,
926
923
CompileResult ) -> R
927
924
{
@@ -1053,22 +1050,16 @@ pub fn phase_3_run_analysis_passes<'tcx, F, R>(sess: &'tcx Session,
1053
1050
tx,
1054
1051
output_filenames,
1055
1052
|tcx| {
1056
- let incremental_hashes_map =
1057
- time ( time_passes,
1058
- "compute_incremental_hashes_map" ,
1059
- || rustc_incremental:: compute_incremental_hashes_map ( tcx) ) ;
1060
-
1061
1053
time ( time_passes,
1062
1054
"load_dep_graph" ,
1063
- || rustc_incremental:: load_dep_graph ( tcx, & incremental_hashes_map ) ) ;
1055
+ || rustc_incremental:: load_dep_graph ( tcx) ) ;
1064
1056
1065
1057
time ( time_passes,
1066
1058
"stability checking" ,
1067
1059
|| stability:: check_unstable_api_usage ( tcx) ) ;
1068
1060
1069
1061
// 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) ) ;
1072
1063
1073
1064
time ( time_passes,
1074
1065
"const checking" ,
@@ -1112,7 +1103,7 @@ pub fn phase_3_run_analysis_passes<'tcx, F, R>(sess: &'tcx Session,
1112
1103
// lint warnings and so on -- kindck used to do this abort, but
1113
1104
// kindck is gone now). -nmatsakis
1114
1105
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 ( ) ) ) ;
1116
1107
}
1117
1108
1118
1109
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,
1123
1114
1124
1115
time ( time_passes, "lint checking" , || lint:: check_crate ( tcx) ) ;
1125
1116
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 ( ) ) ) ;
1127
1118
} )
1128
1119
}
1129
1120
1130
1121
/// Run the translation phase to LLVM, after which the AST and analysis can
1131
1122
/// be discarded.
1132
1123
pub fn phase_4_translate_to_llvm < ' a , ' tcx > ( tcx : TyCtxt < ' a , ' tcx , ' tcx > ,
1133
- incremental_hashes_map : IncrementalHashesMap ,
1134
1124
rx : mpsc:: Receiver < Box < Any + Send > > )
1135
1125
-> write:: OngoingCrateTranslation {
1136
1126
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>,
1141
1131
1142
1132
let translation =
1143
1133
time ( time_passes, "translation" , move || {
1144
- trans:: trans_crate ( tcx, incremental_hashes_map , rx)
1134
+ trans:: trans_crate ( tcx, rx)
1145
1135
} ) ;
1146
1136
1147
1137
if tcx. sess . profile_queries ( ) {
0 commit comments