File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed
compiler/rustc_borrowck/src Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -229,7 +229,7 @@ fn do_mir_borrowck<'tcx>(
229
229
230
230
// Dump MIR results into a file, if that is enabled. This let us
231
231
// write unit-tests, as well as helping with debugging.
232
- nll:: dump_mir_results ( & infcx, body, & regioncx, & opt_closure_req) ;
232
+ nll:: dump_nll_mir ( & infcx, body, & regioncx, & opt_closure_req) ;
233
233
234
234
// We also have a `#[rustc_regions]` annotation that causes us to dump
235
235
// information.
Original file line number Diff line number Diff line change @@ -209,7 +209,16 @@ pub(crate) fn compute_regions<'cx, 'tcx>(
209
209
}
210
210
}
211
211
212
- pub ( super ) fn dump_mir_results < ' tcx > (
212
+ /// `-Zdump-mir=nll` dumps MIR annotated with NLL specific information:
213
+ /// - free regions
214
+ /// - inferred region values
215
+ /// - region liveness
216
+ /// - inference constraints and their causes
217
+ ///
218
+ /// As well as graphviz `.dot` visualizations of:
219
+ /// - the region constraints graph
220
+ /// - the region SCC graph
221
+ pub ( super ) fn dump_nll_mir < ' tcx > (
213
222
infcx : & BorrowckInferCtxt < ' tcx > ,
214
223
body : & Body < ' tcx > ,
215
224
regioncx : & RegionInferenceContext < ' tcx > ,
You can’t perform that action at this time.
0 commit comments