Skip to content

Commit aa8de17

Browse files
committed
fix let else unformatting
1 parent e06c62c commit aa8de17

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

compiler/rustc_trait_selection/src/solve/trait_goals.rs

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -218,14 +218,18 @@ impl<'tcx> assembly::GoalKind<'tcx> for TraitPredicate<'tcx> {
218218
goal_kind: ty::ClosureKind,
219219
) -> QueryResult<'tcx> {
220220
let tcx = ecx.tcx();
221-
let Some(tupled_inputs_and_output) =
222-
structural_traits::extract_tupled_inputs_and_output_from_callable(
221+
let tupled_inputs_and_output =
222+
match structural_traits::extract_tupled_inputs_and_output_from_callable(
223223
tcx,
224224
goal.predicate.self_ty(),
225225
goal_kind,
226-
)? else {
227-
return ecx.evaluate_added_goals_and_make_canonical_response(Certainty::AMBIGUOUS);
228-
};
226+
)? {
227+
Some(a) => a,
228+
None => {
229+
return ecx
230+
.evaluate_added_goals_and_make_canonical_response(Certainty::AMBIGUOUS);
231+
}
232+
};
229233
let output_is_sized_pred = tupled_inputs_and_output
230234
.map_bound(|(_, output)| tcx.at(DUMMY_SP).mk_trait_ref(LangItem::Sized, [output]));
231235

0 commit comments

Comments
 (0)