@@ -7,7 +7,7 @@ use serde::ser::{Serialize, SerializeStruct, Serializer};
77
88use crate :: clean;
99use crate :: clean:: types:: {
10- FakeDefId , FnDecl , FnRetTy , GenericBound , Generics , GetDefId , Type , WherePredicate ,
10+ FnDecl , FnRetTy , GenericBound , Generics , GetDefId , Type , WherePredicate ,
1111} ;
1212use crate :: formats:: cache:: Cache ;
1313use crate :: formats:: item_type:: ItemType ;
@@ -82,7 +82,7 @@ crate fn build_index<'tcx>(krate: &clean::Crate, cache: &mut Cache, tcx: TyCtxt<
8282 defid_to_pathid. insert ( defid, pathid) ;
8383 lastpathid += 1 ;
8484
85- if let Some ( & ( ref fqp, short) ) = paths. get ( & defid. expect_real ( ) ) {
85+ if let Some ( & ( ref fqp, short) ) = paths. get ( & defid) {
8686 crate_paths. push ( ( short, fqp. last ( ) . unwrap ( ) . clone ( ) ) ) ;
8787 Some ( pathid)
8888 } else {
@@ -214,7 +214,7 @@ crate fn get_index_search_type<'tcx>(
214214
215215fn get_index_type ( clean_type : & clean:: Type , cache : & Cache ) -> RenderType {
216216 RenderType {
217- ty : clean_type. def_id_full ( cache) . map ( FakeDefId :: new_real ) ,
217+ ty : clean_type. def_id_full ( cache) ,
218218 idx : None ,
219219 name : get_index_type_name ( clean_type, true ) . map ( |s| s. as_str ( ) . to_ascii_lowercase ( ) ) ,
220220 generics : get_generics ( clean_type, cache) ,
@@ -256,7 +256,7 @@ fn get_generics(clean_type: &clean::Type, cache: &Cache) -> Option<Vec<Generic>>
256256 . filter_map ( |t| {
257257 get_index_type_name ( t, false ) . map ( |name| Generic {
258258 name : name. as_str ( ) . to_ascii_lowercase ( ) ,
259- defid : t. def_id_full ( cache) . map ( FakeDefId :: new_real ) ,
259+ defid : t. def_id_full ( cache) ,
260260 idx : None ,
261261 } )
262262 } )
0 commit comments