We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2dbe9fd commit cab629fCopy full SHA for cab629f
compiler/rustc_hir_analysis/src/delegation.rs
@@ -393,13 +393,8 @@ pub(crate) fn inherit_generics_for_delegation_item<'tcx>(
393
}
394
395
(FnKind::AssocInherentImpl, FnKind::AssocTrait)
396
- | (FnKind::AssocTrait, FnKind::AssocTrait) => {
397
- builder
398
- .with_parent(tcx.parent(def_id.into()))
399
- .build()
400
- }
401
-
402
- (FnKind::AssocInherentImpl, FnKind::Free)
+ | (FnKind::AssocTrait, FnKind::AssocTrait)
+ | (FnKind::AssocInherentImpl, FnKind::Free)
403
| (FnKind::AssocTrait, FnKind::Free) => {
404
builder
405
.with_parent(tcx.parent(def_id.into()))
0 commit comments