Update compiler/rustc_infer/src/infer/canonical/mod.rs
This commit is contained in:
parent
f87953f01a
commit
70200ac190
1 changed files with 3 additions and 0 deletions
|
@ -63,6 +63,9 @@ impl<'cx, 'tcx> InferCtxt<'cx, 'tcx> {
|
||||||
// in them, so this code has no effect, but it is looking
|
// in them, so this code has no effect, but it is looking
|
||||||
// forward to the day when we *do* want to carry universes
|
// forward to the day when we *do* want to carry universes
|
||||||
// through into queries.
|
// through into queries.
|
||||||
|
//
|
||||||
|
// Instantiate the root-universe content into the current universe,
|
||||||
|
// and create fresh universes for the higher universes.
|
||||||
let universes: IndexVec<ty::UniverseIndex, _> = std::iter::once(self.universe())
|
let universes: IndexVec<ty::UniverseIndex, _> = std::iter::once(self.universe())
|
||||||
.chain((1..=canonical.max_universe.as_u32()).map(|_| self.create_next_universe()))
|
.chain((1..=canonical.max_universe.as_u32()).map(|_| self.create_next_universe()))
|
||||||
.collect();
|
.collect();
|
||||||
|
|
Loading…
Add table
Reference in a new issue