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); }) }