@@ -660,7 +660,7 @@ fn item_trait(w: &mut Buffer, cx: &Context<'_>, it: &clean::Item, t: &clean::Tra
660660 write ! (
661661 w,
662662 "<h2 id=\" {0}\" class=\" small-section-header\" >\
663- {1} <a href=\" #{0}\" class= \" anchor \" > </a>\
663+ <a href=\" #{0}\" >{1} </a>\
664664 </h2>{2}",
665665 id, title, extra_content
666666 )
@@ -1001,7 +1001,7 @@ fn item_union(w: &mut Buffer, cx: &Context<'_>, it: &clean::Item, s: &clean::Uni
10011001 write ! (
10021002 w,
10031003 "<h2 id=\" fields\" class=\" fields small-section-header\" >\
1004- Fields <a href=\" #fields\" class= \" anchor \" > </a></h2>"
1004+ <a href=\" #fields\" >Fields </a></h2>"
10051005 ) ;
10061006 for ( field, ty) in fields {
10071007 let name = field. name . as_ref ( ) . expect ( "union field name" ) ;
@@ -1108,7 +1108,7 @@ fn item_enum(w: &mut Buffer, cx: &Context<'_>, it: &clean::Item, e: &clean::Enum
11081108 write ! (
11091109 w,
11101110 "<h2 id=\" variants\" class=\" variants small-section-header\" >\
1111- Variants{} <a href=\" #variants\" class= \" anchor \" > </a></h2>",
1111+ <a href=\" #variants\" >Variants{} </a></h2>",
11121112 document_non_exhaustive_header( it)
11131113 ) ;
11141114 document_non_exhaustive ( w, it) ;
@@ -1300,7 +1300,7 @@ fn item_struct(w: &mut Buffer, cx: &Context<'_>, it: &clean::Item, s: &clean::St
13001300 write ! (
13011301 w,
13021302 "<h2 id=\" fields\" class=\" fields small-section-header\" >\
1303- {}{} <a href=\" #fields\" class= \" anchor \" > </a>\
1303+ <a href=\" #fields\" >{}{} </a>\
13041304 </h2>",
13051305 if let CtorKind :: Fictive = s. struct_type { "Fields" } else { "Tuple Fields" } ,
13061306 document_non_exhaustive_header( it)
@@ -1732,7 +1732,8 @@ fn document_type_layout(w: &mut Buffer, cx: &Context<'_>, ty_def_id: DefId) {
17321732 return ;
17331733 }
17341734
1735- writeln ! ( w, "<h2 class=\" small-section-header\" >Layout</h2>" ) ;
1735+ writeln ! ( w, "<h2 id=\" layout\" class=\" small-section-header\" >" ) ;
1736+ writeln ! ( w, "<a href=\" #layout\" >Layout</a></h2>" ) ;
17361737 writeln ! ( w, "<div class=\" docblock\" >" ) ;
17371738
17381739 let tcx = cx. tcx ( ) ;
0 commit comments