rustdoc: make item links consistently use title="{shortty} {path}"
The ordering in item tables was flipped in3030cbea95, making it inconsistent with the ordering in method signatures. Compare these:c8e6a9e8b6/src/librustdoc/html/render/print_item.rs (L455-L459)c8e6a9e8b6/src/librustdoc/html/format.rs (L903-L908)
This commit is contained in:
parent
c8e6a9e8b6
commit
57ca36861d
7 changed files with 8 additions and 8 deletions
|
|
@ -452,7 +452,7 @@ fn item_module(w: &mut Buffer, cx: &mut Context<'_>, item: &clean::Item, items:
|
|||
stab = stab.unwrap_or_default(),
|
||||
unsafety_flag = unsafety_flag,
|
||||
href = item_path(myitem.type_(), myitem.name.unwrap().as_str()),
|
||||
title = [full_path(cx, myitem), myitem.type_().to_string()]
|
||||
title = [myitem.type_().to_string(), full_path(cx, myitem)]
|
||||
.iter()
|
||||
.filter_map(|s| if !s.is_empty() { Some(s.as_str()) } else { None })
|
||||
.collect::<Vec<_>>()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue