File tree 2 files changed +2
-2
lines changed
compiler/rustc_mir/src/borrow_check
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>(
294
294
295
295
// Solve the region constraints.
296
296
let ( closure_region_requirements, nll_errors) =
297
- regioncx. solve ( infcx, & body, def_id , polonius_output. clone ( ) ) ;
297
+ regioncx. solve ( infcx, & body, polonius_output. clone ( ) ) ;
298
298
299
299
if !nll_errors. is_empty ( ) {
300
300
// 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> {
548
548
& mut self ,
549
549
infcx : & InferCtxt < ' _ , ' tcx > ,
550
550
body : & Body < ' tcx > ,
551
- mir_def_id : DefId ,
552
551
polonius_output : Option < Rc < PoloniusOutput > > ,
553
552
) -> ( Option < ClosureRegionRequirements < ' tcx > > , RegionErrors < ' tcx > ) {
553
+ let mir_def_id = body. source . def_id ( ) ;
554
554
self . propagate_constraints ( body, infcx. tcx ) ;
555
555
556
556
let mut errors_buffer = RegionErrors :: new ( ) ;
You can’t perform that action at this time.
0 commit comments