nll: solve
This commit is contained in:
parent
2e35cf973b
commit
fff3b7596a
@ -294,7 +294,7 @@ pub(in crate::borrow_check) fn compute_regions<'cx, 'tcx>(
|
|||||||
|
|
||||||
// Solve the region constraints.
|
// Solve the region constraints.
|
||||||
let (closure_region_requirements, nll_errors) =
|
let (closure_region_requirements, nll_errors) =
|
||||||
regioncx.solve(infcx, &body, def_id, polonius_output.clone());
|
regioncx.solve(infcx, &body, polonius_output.clone());
|
||||||
|
|
||||||
if !nll_errors.is_empty() {
|
if !nll_errors.is_empty() {
|
||||||
// Suppress unhelpful extra errors in `infer_opaque_types`.
|
// Suppress unhelpful extra errors in `infer_opaque_types`.
|
||||||
|
@ -548,9 +548,9 @@ impl<'tcx> RegionInferenceContext<'tcx> {
|
|||||||
&mut self,
|
&mut self,
|
||||||
infcx: &InferCtxt<'_, 'tcx>,
|
infcx: &InferCtxt<'_, 'tcx>,
|
||||||
body: &Body<'tcx>,
|
body: &Body<'tcx>,
|
||||||
mir_def_id: DefId,
|
|
||||||
polonius_output: Option<Rc<PoloniusOutput>>,
|
polonius_output: Option<Rc<PoloniusOutput>>,
|
||||||
) -> (Option<ClosureRegionRequirements<'tcx>>, RegionErrors<'tcx>) {
|
) -> (Option<ClosureRegionRequirements<'tcx>>, RegionErrors<'tcx>) {
|
||||||
|
let mir_def_id = body.source.def_id();
|
||||||
self.propagate_constraints(body, infcx.tcx);
|
self.propagate_constraints(body, infcx.tcx);
|
||||||
|
|
||||||
let mut errors_buffer = RegionErrors::new();
|
let mut errors_buffer = RegionErrors::new();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user