Skip to content

Commit ee2158f

Browse files
committed
run rustfmt
1 parent 59d0bff commit ee2158f

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

compiler/rustc_infer/src/infer/opaque_types.rs

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -554,13 +554,15 @@ impl<'a, 'tcx> InferCtxt<'a, 'tcx> {
554554
ty_op: |ty| match *ty.kind() {
555555
// We can't normalize associated types from `rustc_infer`,
556556
// but we can eagerly register inference variables for them.
557-
ty::Projection(projection_ty) if !projection_ty.has_escaping_bound_vars() => self.infer_projection(
558-
param_env,
559-
projection_ty,
560-
cause.clone(),
561-
0,
562-
&mut obligations,
563-
),
557+
ty::Projection(projection_ty) if !projection_ty.has_escaping_bound_vars() => {
558+
self.infer_projection(
559+
param_env,
560+
projection_ty,
561+
cause.clone(),
562+
0,
563+
&mut obligations,
564+
)
565+
}
564566
// Replace all other mentions of the same opaque type with the hidden type,
565567
// as the bounds must hold on the hidden type after all.
566568
ty::Opaque(def_id2, substs2) if def_id == def_id2 && substs == substs2 => {

0 commit comments

Comments
 (0)