Skip to content

Commit 70200ac

Browse files
authored
Update compiler/rustc_infer/src/infer/canonical/mod.rs
1 parent f87953f commit 70200ac

File tree

1 file changed

+3
-0
lines changed
  • compiler/rustc_infer/src/infer/canonical

1 file changed

+3
-0
lines changed

compiler/rustc_infer/src/infer/canonical/mod.rs

+3
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ impl<'cx, 'tcx> InferCtxt<'cx, 'tcx> {
6363
// in them, so this code has no effect, but it is looking
6464
// forward to the day when we *do* want to carry universes
6565
// through into queries.
66+
//
67+
// Instantiate the root-universe content into the current universe,
68+
// and create fresh universes for the higher universes.
6669
let universes: IndexVec<ty::UniverseIndex, _> = std::iter::once(self.universe())
6770
.chain((1..=canonical.max_universe.as_u32()).map(|_| self.create_next_universe()))
6871
.collect();

0 commit comments

Comments
 (0)