instantiate response: no unnecessary new universe
this previously was a off-by-one error.
This commit is contained in:
parent
d06ca0ffaf
commit
11716830ac
4 changed files with 158 additions and 1 deletions
|
@ -215,7 +215,7 @@ impl<'tcx> EvalCtxt<'_, 'tcx> {
|
|||
// created inside of the query directly instead of returning them to the
|
||||
// caller.
|
||||
let prev_universe = self.infcx.universe();
|
||||
let universes_created_in_query = response.max_universe.index() + 1;
|
||||
let universes_created_in_query = response.max_universe.index();
|
||||
for _ in 0..universes_created_in_query {
|
||||
self.infcx.create_next_universe();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue