@@ -1168,8 +1168,8 @@ fn render_deref_methods(
1168
1168
debug ! ( "Render deref methods for {:#?}, target {:#?}" , impl_. inner_impl( ) . for_, target) ;
1169
1169
let what =
1170
1170
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) {
1173
1173
// `impl Deref<Target = S> for S`
1174
1174
if did == type_did {
1175
1175
// Avoid infinite cycles
@@ -1215,7 +1215,7 @@ fn should_render_item(item: &clean::Item, deref_mut_: bool, tcx: TyCtxt<'_>) ->
1215
1215
fn notable_traits_decl ( decl : & clean:: FnDecl , cx : & Context < ' _ > ) -> String {
1216
1216
let mut out = Buffer :: html ( ) ;
1217
1217
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 ( ) ) ) {
1219
1219
if let Some ( impls) = cx. cache ( ) . impls . get ( & did) {
1220
1220
for i in impls {
1221
1221
let impl_ = i. inner_impl ( ) ;
@@ -2058,8 +2058,8 @@ fn sidebar_deref_methods(cx: &Context<'_>, out: &mut Buffer, impl_: &Impl, v: &V
2058
2058
} )
2059
2059
{
2060
2060
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) {
2063
2063
// `impl Deref<Target = S> for S`
2064
2064
if did == type_did {
2065
2065
// Avoid infinite cycles
@@ -2069,7 +2069,7 @@ fn sidebar_deref_methods(cx: &Context<'_>, out: &mut Buffer, impl_: &Impl, v: &V
2069
2069
}
2070
2070
let deref_mut = v. iter ( ) . any ( |i| i. trait_did ( ) == cx. tcx ( ) . lang_items ( ) . deref_mut_trait ( ) ) ;
2071
2071
let inner_impl = target
2072
- . def_id_full ( c)
2072
+ . def_id ( c)
2073
2073
. or_else ( || {
2074
2074
target. primitive_type ( ) . and_then ( |prim| c. primitive_locations . get ( & prim) . cloned ( ) )
2075
2075
} )
@@ -2232,10 +2232,7 @@ fn sidebar_trait(cx: &Context<'_>, buf: &mut Buffer, it: &clean::Item, t: &clean
2232
2232
let mut res = implementors
2233
2233
. iter ( )
2234
2234
. 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) )
2239
2236
} )
2240
2237
. filter_map ( |i| extract_for_impl_name ( & i. impl_item , cx) )
2241
2238
. collect :: < Vec < _ > > ( ) ;
0 commit comments