@@ -150,6 +150,7 @@ pub fn compile_input(sess: Session,
150
150
& expanded_crate,
151
151
tcx. map . krate ( ) ,
152
152
& analysis,
153
+ & mir_map,
153
154
tcx,
154
155
& lcx,
155
156
& id) ;
@@ -275,6 +276,7 @@ pub struct CompileState<'a, 'ast: 'a, 'tcx: 'a> {
275
276
pub expanded_crate : Option < & ' a ast:: Crate > ,
276
277
pub hir_crate : Option < & ' a hir:: Crate > ,
277
278
pub ast_map : Option < & ' a hir_map:: Map < ' ast > > ,
279
+ pub mir_map : Option < & ' a MirMap < ' tcx > > ,
278
280
pub analysis : Option < & ' a ty:: CrateAnalysis < ' a > > ,
279
281
pub tcx : Option < & ' a ty:: ctxt < ' tcx > > ,
280
282
pub lcx : Option < & ' a LoweringContext < ' a > > ,
@@ -298,6 +300,7 @@ impl<'a, 'ast, 'tcx> CompileState<'a, 'ast, 'tcx> {
298
300
hir_crate : None ,
299
301
ast_map : None ,
300
302
analysis : None ,
303
+ mir_map : None ,
301
304
tcx : None ,
302
305
lcx : None ,
303
306
trans : None ,
@@ -350,12 +353,14 @@ impl<'a, 'ast, 'tcx> CompileState<'a, 'ast, 'tcx> {
350
353
krate : & ' a ast:: Crate ,
351
354
hir_crate : & ' a hir:: Crate ,
352
355
analysis : & ' a ty:: CrateAnalysis ,
356
+ mir_map : & ' a MirMap < ' tcx > ,
353
357
tcx : & ' a ty:: ctxt < ' tcx > ,
354
358
lcx : & ' a LoweringContext < ' a > ,
355
359
crate_name : & ' a str )
356
360
-> CompileState < ' a , ' ast , ' tcx > {
357
361
CompileState {
358
362
analysis : Some ( analysis) ,
363
+ mir_map : Some ( mir_map) ,
359
364
tcx : Some ( tcx) ,
360
365
krate : Some ( krate) ,
361
366
hir_crate : Some ( hir_crate) ,
0 commit comments