File tree 1 file changed +10
-8
lines changed
1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -1058,14 +1058,16 @@ impl DocFolder for Cache {
1058
1058
}
1059
1059
} ) ;
1060
1060
1061
- self . search_index . push ( IndexItem {
1062
- ty : shortty ( & item) ,
1063
- name : s. to_string ( ) ,
1064
- path : path. join ( "::" ) . to_string ( ) ,
1065
- desc : shorter ( item. doc_value ( ) ) ,
1066
- parent : parent,
1067
- search_type : get_index_search_type ( & item, parent_basename) ,
1068
- } ) ;
1061
+ if item. def_id . index != CRATE_DEF_INDEX {
1062
+ self . search_index . push ( IndexItem {
1063
+ ty : shortty ( & item) ,
1064
+ name : s. to_string ( ) ,
1065
+ path : path. join ( "::" ) . to_string ( ) ,
1066
+ desc : shorter ( item. doc_value ( ) ) ,
1067
+ parent : parent,
1068
+ search_type : get_index_search_type ( & item, parent_basename) ,
1069
+ } ) ;
1070
+ }
1069
1071
}
1070
1072
( Some ( parent) , None ) if is_method || ( !self . privmod && !hidden_field) => {
1071
1073
if parent. is_local ( ) {
You can’t perform that action at this time.
0 commit comments