@@ -1168,8 +1168,8 @@ fn render_deref_methods(
11681168 debug ! ( "Render deref methods for {:#?}, target {:#?}" , impl_. inner_impl( ) . for_, target) ;
11691169 let what =
11701170 AssocItemRender :: DerefFor { trait_ : deref_type, type_ : real_target, deref_mut_ : deref_mut } ;
1171- if let Some ( did) = target. def_id_full ( cache) {
1172- if let Some ( type_did) = impl_. inner_impl ( ) . for_ . def_id_full ( cache) {
1171+ if let Some ( did) = target. def_id ( cache) {
1172+ if let Some ( type_did) = impl_. inner_impl ( ) . for_ . def_id ( cache) {
11731173 // `impl Deref<Target = S> for S`
11741174 if did == type_did {
11751175 // Avoid infinite cycles
@@ -1215,7 +1215,7 @@ fn should_render_item(item: &clean::Item, deref_mut_: bool, tcx: TyCtxt<'_>) ->
12151215fn notable_traits_decl ( decl : & clean:: FnDecl , cx : & Context < ' _ > ) -> String {
12161216 let mut out = Buffer :: html ( ) ;
12171217
1218- if let Some ( did) = decl. output . as_return ( ) . and_then ( |t| t. def_id_full ( cx. cache ( ) ) ) {
1218+ if let Some ( did) = decl. output . as_return ( ) . and_then ( |t| t. def_id ( cx. cache ( ) ) ) {
12191219 if let Some ( impls) = cx. cache ( ) . impls . get ( & did) {
12201220 for i in impls {
12211221 let impl_ = i. inner_impl ( ) ;
@@ -2058,8 +2058,8 @@ fn sidebar_deref_methods(cx: &Context<'_>, out: &mut Buffer, impl_: &Impl, v: &V
20582058 } )
20592059 {
20602060 debug ! ( "found target, real_target: {:?} {:?}" , target, real_target) ;
2061- if let Some ( did) = target. def_id_full ( c) {
2062- if let Some ( type_did) = impl_. inner_impl ( ) . for_ . def_id_full ( c) {
2061+ if let Some ( did) = target. def_id ( c) {
2062+ if let Some ( type_did) = impl_. inner_impl ( ) . for_ . def_id ( c) {
20632063 // `impl Deref<Target = S> for S`
20642064 if did == type_did {
20652065 // Avoid infinite cycles
@@ -2069,7 +2069,7 @@ fn sidebar_deref_methods(cx: &Context<'_>, out: &mut Buffer, impl_: &Impl, v: &V
20692069 }
20702070 let deref_mut = v. iter ( ) . any ( |i| i. trait_did ( ) == cx. tcx ( ) . lang_items ( ) . deref_mut_trait ( ) ) ;
20712071 let inner_impl = target
2072- . def_id_full ( c)
2072+ . def_id ( c)
20732073 . or_else ( || {
20742074 target. primitive_type ( ) . and_then ( |prim| c. primitive_locations . get ( & prim) . cloned ( ) )
20752075 } )
@@ -2232,10 +2232,7 @@ fn sidebar_trait(cx: &Context<'_>, buf: &mut Buffer, it: &clean::Item, t: &clean
22322232 let mut res = implementors
22332233 . iter ( )
22342234 . filter ( |i| {
2235- i. inner_impl ( )
2236- . for_
2237- . def_id_full ( cache)
2238- . map_or ( false , |d| !cache. paths . contains_key ( & d) )
2235+ i. inner_impl ( ) . for_ . def_id ( cache) . map_or ( false , |d| !cache. paths . contains_key ( & d) )
22392236 } )
22402237 . filter_map ( |i| extract_for_impl_name ( & i. impl_item , cx) )
22412238 . collect :: < Vec < _ > > ( ) ;
0 commit comments