Skip to content

Commit 8c80124

Browse files
Add missing description in alias items
1 parent e81b59b commit 8c80124

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/librustdoc/html/render.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -879,8 +879,8 @@ themePicker.onclick = function() {{
879879
}
880880

881881
fn show_item(item: &IndexItem, krate: &str) -> String {
882-
format!("{{'crate':'{}','ty':{},'name':'{}','path':'{}'{}}}",
883-
krate, item.ty as usize, item.name, item.path,
882+
format!("{{'crate':'{}','ty':{},'name':'{}','desc':'{}','path':'{}'{}}}",
883+
krate, item.ty as usize, item.name, item.desc, item.path,
884884
if let Some(p) = item.parent_idx {
885885
format!(",'parent':{}", p)
886886
} else {
@@ -1442,7 +1442,7 @@ impl<'a> Cache {
14421442
ty: item.type_(),
14431443
name: item_name.to_string(),
14441444
path: path.clone(),
1445-
desc: String::new(),
1445+
desc: plain_summary_line(item.doc_value()),
14461446
parent: None,
14471447
parent_idx: None,
14481448
search_type: get_index_search_type(&item),

0 commit comments

Comments
 (0)