diff options
| -rw-r--r-- | src/librustdoc/html/render/mod.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/librustdoc/html/render/mod.rs b/src/librustdoc/html/render/mod.rs index 754c954c3a7..e90e26f20e3 100644 --- a/src/librustdoc/html/render/mod.rs +++ b/src/librustdoc/html/render/mod.rs @@ -4426,13 +4426,12 @@ fn sidebar_deref_methods(cx: &Context<'_>, impl_: &Impl, v: &Vec<Impl>) -> Strin let id = deref_id_map .get(&real_target.def_id().unwrap()) .expect("Deref section without derived id"); - out.push_str(&format!("<a class=\"sidebar-title\" href=\"#{}\">", id)); out.push_str(&format!( - "Methods from {}<Target={}>", + "<a class=\"sidebar-title\" href=\"#{}\">Methods from {}<Target={}></a>", + id, Escape(&format!("{:#}", impl_.inner_impl().trait_.as_ref().unwrap().print())), - Escape(&format!("{:#}", real_target.print())) + Escape(&format!("{:#}", real_target.print())), )); - out.push_str("</a>"); // We want links' order to be reproducible so we don't use unstable sort. ret.sort(); out.push_str(&format!("<div class=\"sidebar-links\">{}</div>", ret.join(""))); |
