1
Fork 0

Merge two identical match arms.

Note: `inherit_predicates_for_delegation_item` already has these cases
merged.
This commit is contained in:
Nicholas Nethercote 2025-01-30 09:59:59 +11:00
parent 2dbe9fd8a6
commit cab629fbd2

View file

@ -393,13 +393,8 @@ pub(crate) fn inherit_generics_for_delegation_item<'tcx>(
}
(FnKind::AssocInherentImpl, FnKind::AssocTrait)
| (FnKind::AssocTrait, FnKind::AssocTrait) => {
builder
.with_parent(tcx.parent(def_id.into()))
.build()
}
(FnKind::AssocInherentImpl, FnKind::Free)
| (FnKind::AssocTrait, FnKind::AssocTrait)
| (FnKind::AssocInherentImpl, FnKind::Free)
| (FnKind::AssocTrait, FnKind::Free) => {
builder
.with_parent(tcx.parent(def_id.into()))