Skip to content

Commit 8315095

Browse files
committed
w
1 parent 2b2c4af commit 8315095

File tree

1 file changed

+13
-10
lines changed
  • compiler/rustc_trait_selection/src/solve/project_goals

1 file changed

+13
-10
lines changed

compiler/rustc_trait_selection/src/solve/project_goals/opaques.rs

+13-10
Original file line numberDiff line numberDiff line change
@@ -55,16 +55,19 @@ impl<'tcx> EvalCtxt<'_, 'tcx> {
5555
}
5656

5757
let expected = match self.try_normalize_ty(goal.param_env, expected) {
58-
Some(ty) => if ty.is_ty_var() {
59-
return self.evaluate_added_goals_and_make_canonical_response(
60-
Certainty::AMBIGUOUS,
61-
)
62-
} else {
63-
ty
64-
},
65-
None => return self.evaluate_added_goals_and_make_canonical_response(
66-
Certainty::OVERFLOW,
67-
),
58+
Some(ty) => {
59+
if ty.is_ty_var() {
60+
return self.evaluate_added_goals_and_make_canonical_response(
61+
Certainty::AMBIGUOUS,
62+
);
63+
} else {
64+
ty
65+
}
66+
}
67+
None => {
68+
return self
69+
.evaluate_added_goals_and_make_canonical_response(Certainty::OVERFLOW);
70+
}
6871
};
6972

7073
// Otherwise, define a new opaque type

0 commit comments

Comments
 (0)