Merge two identical match arms.
Note: `inherit_predicates_for_delegation_item` already has these cases merged.
This commit is contained in:
parent
2dbe9fd8a6
commit
cab629fbd2
1 changed files with 2 additions and 7 deletions
|
@ -393,13 +393,8 @@ pub(crate) fn inherit_generics_for_delegation_item<'tcx>(
|
||||||
}
|
}
|
||||||
|
|
||||||
(FnKind::AssocInherentImpl, FnKind::AssocTrait)
|
(FnKind::AssocInherentImpl, FnKind::AssocTrait)
|
||||||
| (FnKind::AssocTrait, FnKind::AssocTrait) => {
|
| (FnKind::AssocTrait, FnKind::AssocTrait)
|
||||||
builder
|
| (FnKind::AssocInherentImpl, FnKind::Free)
|
||||||
.with_parent(tcx.parent(def_id.into()))
|
|
||||||
.build()
|
|
||||||
}
|
|
||||||
|
|
||||||
(FnKind::AssocInherentImpl, FnKind::Free)
|
|
||||||
| (FnKind::AssocTrait, FnKind::Free) => {
|
| (FnKind::AssocTrait, FnKind::Free) => {
|
||||||
builder
|
builder
|
||||||
.with_parent(tcx.parent(def_id.into()))
|
.with_parent(tcx.parent(def_id.into()))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue