@@ -68,7 +68,7 @@ pub fn dump_mir<'a, 'gcx, 'tcx, F>(
68
68
pass_num : Option < & dyn Display > ,
69
69
pass_name : & str ,
70
70
disambiguator : & dyn Display ,
71
- source : MirSource ,
71
+ source : MirSource < ' tcx > ,
72
72
mir : & Mir < ' tcx > ,
73
73
extra_data : F ,
74
74
) where
@@ -97,7 +97,7 @@ pub fn dump_mir<'a, 'gcx, 'tcx, F>(
97
97
pub fn dump_enabled < ' a , ' gcx , ' tcx > (
98
98
tcx : TyCtxt < ' a , ' gcx , ' tcx > ,
99
99
pass_name : & str ,
100
- source : MirSource ,
100
+ source : MirSource < ' tcx > ,
101
101
) -> bool {
102
102
let filters = match tcx. sess . opts . debugging_opts . dump_mir {
103
103
None => return false ,
@@ -124,7 +124,7 @@ fn dump_matched_mir_node<'a, 'gcx, 'tcx, F>(
124
124
pass_name : & str ,
125
125
node_path : & str ,
126
126
disambiguator : & dyn Display ,
127
- source : MirSource ,
127
+ source : MirSource < ' tcx > ,
128
128
mir : & Mir < ' tcx > ,
129
129
mut extra_data : F ,
130
130
) where
@@ -164,7 +164,7 @@ fn dump_path(
164
164
pass_num : Option < & dyn Display > ,
165
165
pass_name : & str ,
166
166
disambiguator : & dyn Display ,
167
- source : MirSource ,
167
+ source : MirSource < ' tcx > ,
168
168
) -> PathBuf {
169
169
let promotion_id = match source. promoted {
170
170
Some ( id) => format ! ( "-{:?}" , id) ,
@@ -231,7 +231,7 @@ pub(crate) fn create_dump_file(
231
231
pass_num : Option < & dyn Display > ,
232
232
pass_name : & str ,
233
233
disambiguator : & dyn Display ,
234
- source : MirSource ,
234
+ source : MirSource < ' tcx > ,
235
235
) -> io:: Result < fs:: File > {
236
236
let file_path = dump_path ( tcx, extension, pass_num, pass_name, disambiguator, source) ;
237
237
if let Some ( parent) = file_path. parent ( ) {
@@ -282,7 +282,7 @@ pub fn write_mir_pretty<'a, 'gcx, 'tcx>(
282
282
283
283
pub fn write_mir_fn < ' a , ' gcx , ' tcx , F > (
284
284
tcx : TyCtxt < ' a , ' gcx , ' tcx > ,
285
- src : MirSource ,
285
+ src : MirSource < ' tcx > ,
286
286
mir : & Mir < ' tcx > ,
287
287
extra_data : & mut F ,
288
288
w : & mut dyn Write ,
@@ -546,7 +546,7 @@ fn write_scope_tree(
546
546
/// local variables (both user-defined bindings and compiler temporaries).
547
547
pub fn write_mir_intro < ' a , ' gcx , ' tcx > (
548
548
tcx : TyCtxt < ' a , ' gcx , ' tcx > ,
549
- src : MirSource ,
549
+ src : MirSource < ' tcx > ,
550
550
mir : & Mir < ' _ > ,
551
551
w : & mut dyn Write ,
552
552
) -> io:: Result < ( ) > {
@@ -588,7 +588,7 @@ pub fn write_mir_intro<'a, 'gcx, 'tcx>(
588
588
589
589
fn write_mir_sig (
590
590
tcx : TyCtxt < ' _ , ' _ , ' _ > ,
591
- src : MirSource ,
591
+ src : MirSource < ' tcx > ,
592
592
mir : & Mir < ' _ > ,
593
593
w : & mut dyn Write ,
594
594
) -> io:: Result < ( ) > {
0 commit comments