@@ -56,13 +56,13 @@ pub enum PassWhere {
56
56
/// - `substring1&substring2,...` -- `&`-separated list of substrings
57
57
/// that can appear in the pass-name or the `item_path_str` for the given
58
58
/// node-id. If any one of the substrings match, the data is dumped out.
59
- pub fn dump_mir < ' a , ' tcx , F > ( tcx : TyCtxt < ' a , ' tcx , ' tcx > ,
60
- pass_num : Option < ( MirSuite , MirPassIndex ) > ,
61
- pass_name : & str ,
62
- disambiguator : & Display ,
63
- source : MirSource ,
64
- mir : & Mir < ' tcx > ,
65
- extra_data : F )
59
+ pub fn dump_mir < ' a , ' gcx , ' tcx , F > ( tcx : TyCtxt < ' a , ' gcx , ' tcx > ,
60
+ pass_num : Option < ( MirSuite , MirPassIndex ) > ,
61
+ pass_name : & str ,
62
+ disambiguator : & Display ,
63
+ source : MirSource ,
64
+ mir : & Mir < ' tcx > ,
65
+ extra_data : F )
66
66
where
67
67
F : FnMut ( PassWhere , & mut Write ) -> io:: Result < ( ) >
68
68
{
@@ -77,10 +77,10 @@ where
77
77
disambiguator, source, mir, extra_data) ;
78
78
}
79
79
80
- pub fn dump_enabled < ' a , ' tcx > ( tcx : TyCtxt < ' a , ' tcx , ' tcx > ,
81
- pass_name : & str ,
82
- source : MirSource )
83
- -> bool {
80
+ pub fn dump_enabled < ' a , ' gcx , ' tcx > ( tcx : TyCtxt < ' a , ' gcx , ' tcx > ,
81
+ pass_name : & str ,
82
+ source : MirSource )
83
+ -> bool {
84
84
let filters = match tcx. sess . opts . debugging_opts . dump_mir {
85
85
None => return false ,
86
86
Some ( ref filters) => filters,
@@ -101,14 +101,14 @@ pub fn dump_enabled<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
101
101
// `item_path_str()` would otherwise trigger `type_of`, and this can
102
102
// run while we are already attempting to evaluate `type_of`.
103
103
104
- fn dump_matched_mir_node < ' a , ' tcx , F > ( tcx : TyCtxt < ' a , ' tcx , ' tcx > ,
105
- pass_num : Option < ( MirSuite , MirPassIndex ) > ,
106
- pass_name : & str ,
107
- node_path : & str ,
108
- disambiguator : & Display ,
109
- source : MirSource ,
110
- mir : & Mir < ' tcx > ,
111
- mut extra_data : F )
104
+ fn dump_matched_mir_node < ' a , ' gcx , ' tcx , F > ( tcx : TyCtxt < ' a , ' gcx , ' tcx > ,
105
+ pass_num : Option < ( MirSuite , MirPassIndex ) > ,
106
+ pass_name : & str ,
107
+ node_path : & str ,
108
+ disambiguator : & Display ,
109
+ source : MirSource ,
110
+ mir : & Mir < ' tcx > ,
111
+ mut extra_data : F )
112
112
where
113
113
F : FnMut ( PassWhere , & mut Write ) -> io:: Result < ( ) >
114
114
{
@@ -161,10 +161,10 @@ where
161
161
}
162
162
163
163
/// Write out a human-readable textual representation for the given MIR.
164
- pub fn write_mir_pretty < ' a , ' tcx > ( tcx : TyCtxt < ' a , ' tcx , ' tcx > ,
165
- single : Option < DefId > ,
166
- w : & mut Write )
167
- -> io:: Result < ( ) >
164
+ pub fn write_mir_pretty < ' a , ' gcx , ' tcx > ( tcx : TyCtxt < ' a , ' gcx , ' tcx > ,
165
+ single : Option < DefId > ,
166
+ w : & mut Write )
167
+ -> io:: Result < ( ) >
168
168
{
169
169
writeln ! ( w, "// WARNING: This output format is intended for human consumers only" ) ?;
170
170
writeln ! ( w, "// and is subject to change without notice. Knock yourself out." ) ?;
@@ -192,12 +192,12 @@ pub fn write_mir_pretty<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
192
192
Ok ( ( ) )
193
193
}
194
194
195
- pub fn write_mir_fn < ' a , ' tcx , F > ( tcx : TyCtxt < ' a , ' tcx , ' tcx > ,
196
- src : MirSource ,
197
- mir : & Mir < ' tcx > ,
198
- extra_data : & mut F ,
199
- w : & mut Write )
200
- -> io:: Result < ( ) >
195
+ pub fn write_mir_fn < ' a , ' gcx , ' tcx , F > ( tcx : TyCtxt < ' a , ' gcx , ' tcx > ,
196
+ src : MirSource ,
197
+ mir : & Mir < ' tcx > ,
198
+ extra_data : & mut F ,
199
+ w : & mut Write )
200
+ -> io:: Result < ( ) >
201
201
where
202
202
F : FnMut ( PassWhere , & mut Write ) -> io:: Result < ( ) >
203
203
{
@@ -321,11 +321,11 @@ fn write_scope_tree(tcx: TyCtxt,
321
321
322
322
/// Write out a human-readable textual representation of the MIR's `fn` type and the types of its
323
323
/// local variables (both user-defined bindings and compiler temporaries).
324
- pub fn write_mir_intro < ' a , ' tcx > ( tcx : TyCtxt < ' a , ' tcx , ' tcx > ,
325
- src : MirSource ,
326
- mir : & Mir ,
327
- w : & mut Write )
328
- -> io:: Result < ( ) > {
324
+ pub fn write_mir_intro < ' a , ' gcx , ' tcx > ( tcx : TyCtxt < ' a , ' gcx , ' tcx > ,
325
+ src : MirSource ,
326
+ mir : & Mir ,
327
+ w : & mut Write )
328
+ -> io:: Result < ( ) > {
329
329
write_mir_sig ( tcx, src, mir, w) ?;
330
330
writeln ! ( w, " {{" ) ?;
331
331
0 commit comments