Skip to content

Commit fff3b75

Browse files
nll: solve
1 parent 2e35cf9 commit fff3b75

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler/rustc_mir/src/borrow_check/nll.rs

+1-1
Original file line numberDiff line numberDiff 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`.

compiler/rustc_mir/src/borrow_check/region_infer/mod.rs

+1-1
Original file line numberDiff line numberDiff 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();

0 commit comments

Comments
 (0)