X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Flibrustdoc%2Fhtml%2Frender%2Fprint_item.rs;h=6c0c8a0101439e04f99877975b8f1145c17aec55;hb=c96f86de3026f864e78397aff9097e885f2f8fdf;hp=cc93e55fc676ea3e61f87c07e98c943c2d21abc8;hpb=5662d9343f0696efcc38a1264656737c9f22d427;p=rust.git
diff --git a/src/librustdoc/html/render/print_item.rs b/src/librustdoc/html/render/print_item.rs
index cc93e55fc67..6c0c8a01014 100644
--- a/src/librustdoc/html/render/print_item.rs
+++ b/src/librustdoc/html/render/print_item.rs
@@ -10,9 +10,9 @@
use rustc_span::symbol::{kw, sym, Symbol};
use super::{
- collect_paths_for_type, document, ensure_trailing_slash, item_ty_to_strs, render_assoc_item,
- render_assoc_items, render_attributes, render_impl, render_stability_since_raw, spotlight_decl,
- write_srclink, AssocItemLink, Context,
+ collect_paths_for_type, document, ensure_trailing_slash, item_ty_to_strs, notable_traits_decl,
+ render_assoc_item, render_assoc_items, render_attributes, render_impl,
+ render_stability_since_raw, write_srclink, AssocItemLink, Context,
};
use crate::clean::{self, GetDefId};
use crate::formats::cache::Cache;
@@ -73,6 +73,7 @@ pub(super) fn print_item(cx: &Context<'_>, item: &clean::Item, buf: &mut Buffer)
}
}
write!(buf, "{}", item.type_(), item.name.as_ref().unwrap());
+ write!(buf, "");
buf.write_str(""); // in-band
buf.write_str("");
@@ -380,7 +381,7 @@ fn item_function(w: &mut Buffer, cx: &Context<'_>, it: &clean::Item, f: &clean::
write!(
w,
"{vis}{constness}{asyncness}{unsafety}{abi}fn \
- {name}{generics}{decl}{spotlight}{where_clause}",
+ {name}{generics}{decl}{notable_traits}{where_clause}",
vis = it.visibility.print_with_space(cx.tcx(), it.def_id, cx.cache()),
constness = f.header.constness.print_with_space(),
asyncness = f.header.asyncness.print_with_space(),
@@ -390,7 +391,7 @@ fn item_function(w: &mut Buffer, cx: &Context<'_>, it: &clean::Item, f: &clean::
generics = f.generics.print(cx.cache(), cx.tcx()),
where_clause = print_where_clause(&f.generics, cx.cache(), cx.tcx(), 0, true),
decl = f.decl.full_print(cx.cache(), cx.tcx(), header_len, 0, f.header.asyncness),
- spotlight = spotlight_decl(&f.decl, cx.cache(), cx.tcx()),
+ notable_traits = notable_traits_decl(&f.decl, cx.cache(), cx.tcx()),
);
document(w, cx, it, None)
}
@@ -1170,7 +1171,7 @@ fn wrap_into_docblock(w: &mut Buffer, f: F)
where
F: FnOnce(&mut Buffer),
{
- w.write_str("");
+ w.write_str("
");
f(w);
w.write_str("
")
}