From 2720f635a34eea0c614aa16ac67b3af2007f44de Mon Sep 17 00:00:00 2001 From: Santiago Pastorino Date: Tue, 10 Oct 2017 19:18:19 -0300 Subject: [PATCH] inteference_context should be mut --- src/librustc_mir/transform/nll/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustc_mir/transform/nll/mod.rs b/src/librustc_mir/transform/nll/mod.rs index 34a7568d210..986b308f484 100644 --- a/src/librustc_mir/transform/nll/mod.rs +++ b/src/librustc_mir/transform/nll/mod.rs @@ -161,7 +161,7 @@ impl MirPass for NLL { Ok(()) }); let (_lookup_map, regions) = visitor.into_results(); - let inference_context = InferenceContext::new(regions); + let mut inference_context = InferenceContext::new(regions); inference_context.solve(infcx, &renumbered_mir); }) }