@@ -7,7 +7,7 @@ use serde::ser::{Serialize, SerializeStruct, Serializer};
7
7
8
8
use crate :: clean;
9
9
use crate :: clean:: types:: {
10
- FakeDefId , FnDecl , FnRetTy , GenericBound , Generics , GetDefId , Type , WherePredicate ,
10
+ FnDecl , FnRetTy , GenericBound , Generics , GetDefId , Type , WherePredicate ,
11
11
} ;
12
12
use crate :: formats:: cache:: Cache ;
13
13
use crate :: formats:: item_type:: ItemType ;
@@ -82,7 +82,7 @@ crate fn build_index<'tcx>(krate: &clean::Crate, cache: &mut Cache, tcx: TyCtxt<
82
82
defid_to_pathid. insert ( defid, pathid) ;
83
83
lastpathid += 1 ;
84
84
85
- if let Some ( & ( ref fqp, short) ) = paths. get ( & defid. expect_real ( ) ) {
85
+ if let Some ( & ( ref fqp, short) ) = paths. get ( & defid) {
86
86
crate_paths. push ( ( short, fqp. last ( ) . unwrap ( ) . clone ( ) ) ) ;
87
87
Some ( pathid)
88
88
} else {
@@ -214,7 +214,7 @@ crate fn get_index_search_type<'tcx>(
214
214
215
215
fn get_index_type ( clean_type : & clean:: Type , cache : & Cache ) -> RenderType {
216
216
RenderType {
217
- ty : clean_type. def_id_full ( cache) . map ( FakeDefId :: new_real ) ,
217
+ ty : clean_type. def_id_full ( cache) ,
218
218
idx : None ,
219
219
name : get_index_type_name ( clean_type, true ) . map ( |s| s. as_str ( ) . to_ascii_lowercase ( ) ) ,
220
220
generics : get_generics ( clean_type, cache) ,
@@ -256,7 +256,7 @@ fn get_generics(clean_type: &clean::Type, cache: &Cache) -> Option<Vec<Generic>>
256
256
. filter_map ( |t| {
257
257
get_index_type_name ( t, false ) . map ( |name| Generic {
258
258
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) ,
260
260
idx : None ,
261
261
} )
262
262
} )
0 commit comments