@@ -225,16 +225,17 @@ pub(super) fn dump_nll_mir<'tcx>(
225225 closure_region_requirements : & Option < ClosureRegionRequirements < ' tcx > > ,
226226 borrow_set : & BorrowSet < ' tcx > ,
227227) {
228- if !dump_enabled ( infcx. tcx , "nll" , body. source . def_id ( ) ) {
228+ let tcx = infcx. tcx ;
229+ if !dump_enabled ( tcx, "nll" , body. source . def_id ( ) ) {
229230 return ;
230231 }
231232
232233 // We want the NLL extra comments printed by default in NLL MIR dumps (they were removed in
233234 // #112346). Specifying `-Z mir-include-spans` on the CLI still has priority: for example,
234235 // they're always disabled in mir-opt tests to make working with blessed dumps easier.
235- let options = PrettyPrintMirOptions :: from_cli_with_default ( infcx . tcx , true ) ;
236+ let options = PrettyPrintMirOptions :: from_cli_with_default ( tcx, true ) ;
236237 dump_mir_with_options (
237- infcx . tcx ,
238+ tcx,
238239 false ,
239240 "nll" ,
240241 & 0 ,
@@ -243,16 +244,14 @@ pub(super) fn dump_nll_mir<'tcx>(
243244 match pass_where {
244245 // Before the CFG, dump out the values for each region variable.
245246 PassWhere :: BeforeCFG => {
246- regioncx. dump_mir ( infcx . tcx , out) ?;
247+ regioncx. dump_mir ( tcx, out) ?;
247248 writeln ! ( out, "|" ) ?;
248249
249250 if let Some ( closure_region_requirements) = closure_region_requirements {
250251 writeln ! ( out, "| Free Region Constraints" ) ?;
251- for_each_region_constraint (
252- infcx. tcx ,
253- closure_region_requirements,
254- & mut |msg| writeln ! ( out, "| {msg}" ) ,
255- ) ?;
252+ for_each_region_constraint ( tcx, closure_region_requirements, & mut |msg| {
253+ writeln ! ( out, "| {msg}" )
254+ } ) ?;
256255 writeln ! ( out, "|" ) ?;
257256 }
258257
@@ -282,13 +281,13 @@ pub(super) fn dump_nll_mir<'tcx>(
282281
283282 // Also dump the inference graph constraints as a graphviz file.
284283 let _: io:: Result < ( ) > = try {
285- let mut file = create_dump_file ( infcx . tcx , "regioncx.all.dot" , false , "nll" , & 0 , body) ?;
284+ let mut file = create_dump_file ( tcx, "regioncx.all.dot" , false , "nll" , & 0 , body) ?;
286285 regioncx. dump_graphviz_raw_constraints ( & mut file) ?;
287286 } ;
288287
289288 // Also dump the inference graph constraints SCCs as a graphviz file.
290289 let _: io:: Result < ( ) > = try {
291- let mut file = create_dump_file ( infcx . tcx , "regioncx.scc.dot" , false , "nll" , & 0 , body) ?;
290+ let mut file = create_dump_file ( tcx, "regioncx.scc.dot" , false , "nll" , & 0 , body) ?;
292291 regioncx. dump_graphviz_scc_constraints ( & mut file) ?;
293292 } ;
294293}
0 commit comments