@@ -143,7 +143,7 @@ pub fn compile_input(sess: Session,
143143 phase_3_run_analysis_passes ( & sess,
144144 ast_map,
145145 & arenas,
146- id,
146+ & id,
147147 control. make_glob_map ,
148148 |tcx, analysis| {
149149
@@ -155,7 +155,8 @@ pub fn compile_input(sess: Session,
155155 tcx. map . krate ( ) ,
156156 & analysis,
157157 tcx,
158- & lcx) ;
158+ & lcx,
159+ & id) ;
159160 ( control. after_analysis . callback ) ( state) ;
160161
161162 tcx. sess . abort_if_errors ( ) ;
@@ -279,7 +280,7 @@ pub struct CompileState<'a, 'ast: 'a, 'tcx: 'a> {
279280 pub expanded_crate : Option < & ' a ast:: Crate > ,
280281 pub hir_crate : Option < & ' a hir:: Crate > ,
281282 pub ast_map : Option < & ' a hir_map:: Map < ' ast > > ,
282- pub analysis : Option < & ' a ty:: CrateAnalysis > ,
283+ pub analysis : Option < & ' a ty:: CrateAnalysis < ' a > > ,
283284 pub tcx : Option < & ' a ty:: ctxt < ' tcx > > ,
284285 pub lcx : Option < & ' a LoweringContext < ' a > > ,
285286 pub trans : Option < & ' a trans:: CrateTranslation > ,
@@ -358,14 +359,16 @@ impl<'a, 'ast, 'tcx> CompileState<'a, 'ast, 'tcx> {
358359 hir_crate : & ' a hir:: Crate ,
359360 analysis : & ' a ty:: CrateAnalysis ,
360361 tcx : & ' a ty:: ctxt < ' tcx > ,
361- lcx : & ' a LoweringContext < ' a > )
362+ lcx : & ' a LoweringContext < ' a > ,
363+ crate_name : & ' a str )
362364 -> CompileState < ' a , ' ast , ' tcx > {
363365 CompileState {
364366 analysis : Some ( analysis) ,
365367 tcx : Some ( tcx) ,
366368 krate : Some ( krate) ,
367369 hir_crate : Some ( hir_crate) ,
368370 lcx : Some ( lcx) ,
371+ crate_name : Some ( crate_name) ,
369372 .. CompileState :: empty ( input, session, out_dir)
370373 }
371374 }
@@ -661,7 +664,7 @@ pub fn make_map<'ast>(sess: &Session,
661664pub fn phase_3_run_analysis_passes < ' tcx , F , R > ( sess : & ' tcx Session ,
662665 ast_map : front:: map:: Map < ' tcx > ,
663666 arenas : & ' tcx ty:: CtxtArenas < ' tcx > ,
664- name : String ,
667+ name : & str ,
665668 make_glob_map : resolve:: MakeGlobMap ,
666669 f : F )
667670 -> R
0 commit comments