1
Fork 0
This commit is contained in:
Ellen 2022-08-01 20:15:58 +01:00
parent 825a7cc65c
commit 49d001c5f3
2 changed files with 11 additions and 9 deletions

View file

@ -744,10 +744,7 @@ impl<'tcx> TypeFolder<'tcx> for BoundVarReplacer<'_, 'tcx> {
}
ty::ConstKind::Bound(debruijn, bound_const) if debruijn >= self.current_index => {
let universe = self.universe_for(debruijn);
let p = ty::PlaceholderConst {
universe,
name: bound_const,
};
let p = ty::PlaceholderConst { universe, name: bound_const };
self.mapped_consts.insert(p, bound_const);
self.infcx
.tcx