diff --git a/src/librustdoc/html/render/mod.rs b/src/librustdoc/html/render/mod.rs index 754c954c3a72c..e90e26f20e347 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) -> Strin let id = deref_id_map .get(&real_target.def_id().unwrap()) .expect("Deref section without derived id"); - out.push_str(&format!("", id)); out.push_str(&format!( - "Methods from {}<Target={}>", + "Methods from {}<Target={}>", + id, Escape(&format!("{:#}", impl_.inner_impl().trait_.as_ref().unwrap().print())), - Escape(&format!("{:#}", real_target.print())) + Escape(&format!("{:#}", real_target.print())), )); - out.push_str(""); // We want links' order to be reproducible so we don't use unstable sort. ret.sort(); out.push_str(&format!("
{}
", ret.join("")));