Skip to content

Commit 49d001c

Browse files
committed
fmt...
1 parent 825a7cc commit 49d001c

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

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

+10-5
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,9 @@ impl<'cx, 'tcx> TypeFolder<'tcx> for Canonicalizer<'cx, 'tcx> {
511511
}
512512
ty::ConstKind::Placeholder(placeholder) => {
513513
return self.canonicalize_const_var(
514-
CanonicalVarInfo { kind: CanonicalVarKind::PlaceholderConst(placeholder, ct.ty()) },
514+
CanonicalVarInfo {
515+
kind: CanonicalVarKind::PlaceholderConst(placeholder, ct.ty()),
516+
},
515517
ct,
516518
);
517519
}
@@ -696,10 +698,13 @@ impl<'cx, 'tcx> Canonicalizer<'cx, 'tcx> {
696698
})
697699
}
698700
CanonicalVarKind::PlaceholderConst(placeholder, t) => {
699-
CanonicalVarKind::PlaceholderConst(ty::Placeholder {
700-
universe: reverse_universe_map[&placeholder.universe],
701-
..placeholder
702-
}, t)
701+
CanonicalVarKind::PlaceholderConst(
702+
ty::Placeholder {
703+
universe: reverse_universe_map[&placeholder.universe],
704+
..placeholder
705+
},
706+
t,
707+
)
703708
}
704709
},
705710
})

compiler/rustc_trait_selection/src/traits/project.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -744,10 +744,7 @@ impl<'tcx> TypeFolder<'tcx> for BoundVarReplacer<'_, 'tcx> {
744744
}
745745
ty::ConstKind::Bound(debruijn, bound_const) if debruijn >= self.current_index => {
746746
let universe = self.universe_for(debruijn);
747-
let p = ty::PlaceholderConst {
748-
universe,
749-
name: bound_const,
750-
};
747+
let p = ty::PlaceholderConst { universe, name: bound_const };
751748
self.mapped_consts.insert(p, bound_const);
752749
self.infcx
753750
.tcx

0 commit comments

Comments
 (0)