diff options
| author | Guillaume Gomez <guillaume.gomez@huawei.com> | 2024-08-25 16:18:59 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume.gomez@huawei.com> | 2024-08-25 16:22:35 +0200 |
| commit | b581fed15ef93b4d048097afe728dd052e5668ea (patch) | |
| tree | bf59bb49554f2ba1bae13dd917ec394165d03f7a /src/librustdoc/html/render/mod.rs | |
| parent | a60a9e567a7319b33619f6551dc29522c6f58687 (diff) | |
| download | rust-b581fed15ef93b4d048097afe728dd052e5668ea.tar.gz rust-b581fed15ef93b4d048097afe728dd052e5668ea.zip | |
Generate missing source link on impl associated types
Diffstat (limited to 'src/librustdoc/html/render/mod.rs')
| -rw-r--r-- | src/librustdoc/html/render/mod.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/librustdoc/html/render/mod.rs b/src/librustdoc/html/render/mod.rs index c1b2ee7d8ae..47f321a4c4a 100644 --- a/src/librustdoc/html/render/mod.rs +++ b/src/librustdoc/html/render/mod.rs @@ -1730,6 +1730,7 @@ fn render_impl( let source_id = format!("{item_type}.{name}"); let id = cx.derive_id(&source_id); write!(w, "<section id=\"{id}\" class=\"{item_type}{in_trait_class}\">"); + render_rightside(w, cx, item, render_mode); if trait_.is_some() { // Anchors are only used on trait impls. write!(w, "<a href=\"#{id}\" class=\"anchor\">§</a>"); @@ -1751,6 +1752,7 @@ fn render_impl( let source_id = format!("{item_type}.{name}"); let id = cx.derive_id(&source_id); write!(w, "<section id=\"{id}\" class=\"{item_type}{in_trait_class}\">"); + render_rightside(w, cx, item, render_mode); if trait_.is_some() { // Anchors are only used on trait impls. write!(w, "<a href=\"#{id}\" class=\"anchor\">§</a>"); |
