Skip to content

Commit

Permalink
Update compiler/rustc_infer/src/infer/canonical/mod.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
nikomatsakis authored Oct 10, 2022
1 parent f87953f commit 70200ac
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions compiler/rustc_infer/src/infer/canonical/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ impl<'cx, 'tcx> InferCtxt<'cx, 'tcx> {
// in them, so this code has no effect, but it is looking
// forward to the day when we *do* want to carry universes
// 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())
.chain((1..=canonical.max_universe.as_u32()).map(|_| self.create_next_universe()))
.collect();
Expand Down

0 comments on commit 70200ac

Please sign in to comment.