File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
compiler/rustc_mir/src/borrow_check Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -294,7 +294,7 @@ pub(in crate::borrow_check) fn compute_regions<'cx, 'tcx>(
294294
295295 // Solve the region constraints.
296296 let ( closure_region_requirements, nll_errors) =
297- regioncx. solve ( infcx, & body, def_id , polonius_output. clone ( ) ) ;
297+ regioncx. solve ( infcx, & body, polonius_output. clone ( ) ) ;
298298
299299 if !nll_errors. is_empty ( ) {
300300 // Suppress unhelpful extra errors in `infer_opaque_types`.
Original file line number Diff line number Diff line change @@ -548,9 +548,9 @@ impl<'tcx> RegionInferenceContext<'tcx> {
548548 & mut self ,
549549 infcx : & InferCtxt < ' _ , ' tcx > ,
550550 body : & Body < ' tcx > ,
551- mir_def_id : DefId ,
552551 polonius_output : Option < Rc < PoloniusOutput > > ,
553552 ) -> ( Option < ClosureRegionRequirements < ' tcx > > , RegionErrors < ' tcx > ) {
553+ let mir_def_id = body. source . def_id ( ) ;
554554 self . propagate_constraints ( body, infcx. tcx ) ;
555555
556556 let mut errors_buffer = RegionErrors :: new ( ) ;
You can’t perform that action at this time.
0 commit comments