Skip to content

Commit cc615b2

Browse files
committed
Inline impls on traits too
1 parent 23ccadd commit cc615b2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/librustdoc/clean/inline.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ fn try_inline_def(cx: &DocContext, tcx: &TyCtxt,
7676
let inner = match def {
7777
Def::Trait(did) => {
7878
record_extern_fqn(cx, did, clean::TypeTrait);
79+
ret.extend(build_impls(cx, tcx, did));
7980
clean::TraitItem(build_external_trait(cx, tcx, did))
8081
}
8182
Def::Fn(did) => {

0 commit comments

Comments
 (0)