Skip to content

Commit d75cd5c

Browse files
BoxyUwUJulianKnodt
authored andcommitted
fmt
1 parent 8c729bd commit d75cd5c

File tree

1 file changed

+18
-16
lines changed
  • compiler/rustc_trait_selection/src/traits/select

1 file changed

+18
-16
lines changed

compiler/rustc_trait_selection/src/traits/select/mod.rs

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -671,22 +671,24 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
671671
if let (ty::ConstKind::Unevaluated(_), ty::ConstKind::Unevaluated(_)) =
672672
(c1.kind(), c2.kind())
673673
{
674-
if let (Ok(Some(a)), Ok(Some(b))) = (
675-
tcx.expand_abstract_consts(c1),
676-
tcx.expand_abstract_consts(c2),
677-
) && a.ty() == b.ty() && let Ok(new_obligations) =
678-
self.infcx.at(&obligation.cause, obligation.param_env).eq(a, b)
679-
{
680-
let mut obligations = new_obligations.obligations;
681-
self.add_depth(
682-
obligations.iter_mut(),
683-
obligation.recursion_depth,
684-
);
685-
return self.evaluate_predicates_recursively(
686-
previous_stack,
687-
obligations.into_iter(),
688-
);
689-
}
674+
if let Ok(Some(a)) = tcx.expand_abstract_consts(c1)
675+
&& let Ok(Some(b)) = tcx.expand_abstract_consts(c2)
676+
&& a.ty() == b.ty()
677+
&& let Ok(new_obligations) = self
678+
.infcx
679+
.at(&obligation.cause, obligation.param_env)
680+
.eq(a, b)
681+
{
682+
let mut obligations = new_obligations.obligations;
683+
self.add_depth(
684+
obligations.iter_mut(),
685+
obligation.recursion_depth,
686+
);
687+
return self.evaluate_predicates_recursively(
688+
previous_stack,
689+
obligations.into_iter(),
690+
);
691+
}
690692
}
691693

692694
let evaluate = |c: ty::Const<'tcx>| {

0 commit comments

Comments
 (0)