@@ -365,7 +365,7 @@ impl FromWithTcx<clean::GenericBound> for GenericBound {
365365 TraitBound ( clean:: PolyTrait { trait_, generic_params } , modifier) => {
366366 // FIXME: should `trait_` be a clean::Path equivalent in JSON?
367367 let trait_ =
368- clean:: ResolvedPath { did : trait_. res . def_id ( ) , path : trait_ } . into_tcx ( tcx) ;
368+ clean:: ResolvedPath { did : trait_. def_id ( ) , path : trait_ } . into_tcx ( tcx) ;
369369 GenericBound :: TraitBound {
370370 trait_,
371371 generic_params : generic_params. into_iter ( ) . map ( |x| x. into_tcx ( tcx) ) . collect ( ) ,
@@ -401,7 +401,7 @@ impl FromWithTcx<clean::Type> for Type {
401401
402402 Type :: ResolvedPath {
403403 name : first_trait. whole_name ( ) ,
404- id : from_item_id ( first_trait. res . def_id ( ) . into ( ) ) ,
404+ id : from_item_id ( first_trait. def_id ( ) . into ( ) ) ,
405405 args : first_trait
406406 . segments
407407 . last ( )
@@ -436,7 +436,7 @@ impl FromWithTcx<clean::Type> for Type {
436436 } ,
437437 QPath { name, self_type, trait_, .. } => {
438438 // FIXME: should `trait_` be a clean::Path equivalent in JSON?
439- let trait_ = ResolvedPath { did : trait_. res . def_id ( ) , path : trait_ } . into_tcx ( tcx) ;
439+ let trait_ = ResolvedPath { did : trait_. def_id ( ) , path : trait_ } . into_tcx ( tcx) ;
440440 Type :: QualifiedPath {
441441 name : name. to_string ( ) ,
442442 self_type : Box :: new ( ( * self_type) . into_tcx ( tcx) ) ,
@@ -513,7 +513,7 @@ impl FromWithTcx<clean::Impl> for Impl {
513513 } = impl_;
514514 // FIXME: should `trait_` be a clean::Path equivalent in JSON?
515515 let trait_ = trait_. map ( |path| {
516- let did = path. res . def_id ( ) ;
516+ let did = path. def_id ( ) ;
517517 clean:: ResolvedPath { path, did } . into_tcx ( tcx)
518518 } ) ;
519519 Impl {
0 commit comments