remove unreachable code

This commit is contained in:
Waffle Lapkin
2026-08-14 04:37:10 +02:00
parent cfc82ebbfc
commit 3419a3cb2a
2 changed files with 4 additions and 4 deletions

View File

@@ -365,8 +365,9 @@ where
}
FetchEligibleAssocItemResponse::Err(guar) => return error_response(ecx, guar),
FetchEligibleAssocItemResponse::NotFoundBecauseErased => {
ecx.opaque_accesses.rerun_always(RerunReason::FetchEligibleAssocItem)?;
return Err(NoSolution.into());
match ecx
.opaque_accesses
.rerun_always(RerunReason::FetchEligibleAssocItem)? {}
}
};

View File

@@ -257,8 +257,7 @@ where
{
debug_assert!(is_rigid == ty::IsRigid::Yes);
if ecx.opaque_accesses.might_rerun() {
ecx.opaque_accesses.rerun_always(RerunReason::AutoTraitLeakage)?;
return Err(NoSolution.into());
match ecx.opaque_accesses.rerun_always(RerunReason::AutoTraitLeakage)? {}
}
for item_bound in cx.item_self_bounds(def_id.into()).skip_binder() {