Skip to content

Commit

Permalink
Don't record the root module in the search index
Browse files Browse the repository at this point in the history
  • Loading branch information
mitaa committed Dec 22, 2015
1 parent 439e184 commit 05780ac
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/librustdoc/html/render.rs
Expand Up @@ -1058,14 +1058,16 @@ impl DocFolder for Cache {
}
});

self.search_index.push(IndexItem {
ty: shortty(&item),
name: s.to_string(),
path: path.join("::").to_string(),
desc: shorter(item.doc_value()),
parent: parent,
search_type: get_index_search_type(&item, parent_basename),
});
if item.def_id.index != CRATE_DEF_INDEX {
self.search_index.push(IndexItem {
ty: shortty(&item),
name: s.to_string(),
path: path.join("::").to_string(),
desc: shorter(item.doc_value()),
parent: parent,
search_type: get_index_search_type(&item, parent_basename),
});
}
}
(Some(parent), None) if is_method || (!self.privmod && !hidden_field)=> {
if parent.is_local() {
Expand Down

0 comments on commit 05780ac

Please sign in to comment.