@@ -143,7 +143,7 @@ pub fn compile_input(sess: Session,
143
143
phase_3_run_analysis_passes ( & sess,
144
144
ast_map,
145
145
& arenas,
146
- id,
146
+ & id,
147
147
control. make_glob_map ,
148
148
|tcx, analysis| {
149
149
@@ -155,7 +155,8 @@ pub fn compile_input(sess: Session,
155
155
tcx. map . krate ( ) ,
156
156
& analysis,
157
157
tcx,
158
- & lcx) ;
158
+ & lcx,
159
+ & id) ;
159
160
( control. after_analysis . callback ) ( state) ;
160
161
161
162
tcx. sess . abort_if_errors ( ) ;
@@ -279,7 +280,7 @@ pub struct CompileState<'a, 'ast: 'a, 'tcx: 'a> {
279
280
pub expanded_crate : Option < & ' a ast:: Crate > ,
280
281
pub hir_crate : Option < & ' a hir:: Crate > ,
281
282
pub ast_map : Option < & ' a hir_map:: Map < ' ast > > ,
282
- pub analysis : Option < & ' a ty:: CrateAnalysis > ,
283
+ pub analysis : Option < & ' a ty:: CrateAnalysis < ' a > > ,
283
284
pub tcx : Option < & ' a ty:: ctxt < ' tcx > > ,
284
285
pub lcx : Option < & ' a LoweringContext < ' a > > ,
285
286
pub trans : Option < & ' a trans:: CrateTranslation > ,
@@ -358,14 +359,16 @@ impl<'a, 'ast, 'tcx> CompileState<'a, 'ast, 'tcx> {
358
359
hir_crate : & ' a hir:: Crate ,
359
360
analysis : & ' a ty:: CrateAnalysis ,
360
361
tcx : & ' a ty:: ctxt < ' tcx > ,
361
- lcx : & ' a LoweringContext < ' a > )
362
+ lcx : & ' a LoweringContext < ' a > ,
363
+ crate_name : & ' a str )
362
364
-> CompileState < ' a , ' ast , ' tcx > {
363
365
CompileState {
364
366
analysis : Some ( analysis) ,
365
367
tcx : Some ( tcx) ,
366
368
krate : Some ( krate) ,
367
369
hir_crate : Some ( hir_crate) ,
368
370
lcx : Some ( lcx) ,
371
+ crate_name : Some ( crate_name) ,
369
372
.. CompileState :: empty ( input, session, out_dir)
370
373
}
371
374
}
@@ -661,7 +664,7 @@ pub fn make_map<'ast>(sess: &Session,
661
664
pub fn phase_3_run_analysis_passes < ' tcx , F , R > ( sess : & ' tcx Session ,
662
665
ast_map : front:: map:: Map < ' tcx > ,
663
666
arenas : & ' tcx ty:: CtxtArenas < ' tcx > ,
664
- name : String ,
667
+ name : & str ,
665
668
make_glob_map : resolve:: MakeGlobMap ,
666
669
f : F )
667
670
-> R
0 commit comments