mirror of
https://github.com/allankoechke/rust.git
synced 2026-11-30 11:05:36 +00:00
remove unreachable code
This commit is contained in:
@@ -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)? {}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user