inteference_context should be mut

This commit is contained in:
Santiago Pastorino 2017-10-10 19:18:19 -03:00 committed by Paul Daniel Faria
parent 25aa6eaf30
commit 2720f635a3

View File

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