@@ -365,7 +365,7 @@ impl FromWithTcx<clean::GenericBound> for GenericBound {
365
365
TraitBound ( clean:: PolyTrait { trait_, generic_params } , modifier) => {
366
366
// FIXME: should `trait_` be a clean::Path equivalent in JSON?
367
367
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) ;
369
369
GenericBound :: TraitBound {
370
370
trait_,
371
371
generic_params : generic_params. into_iter ( ) . map ( |x| x. into_tcx ( tcx) ) . collect ( ) ,
@@ -401,7 +401,7 @@ impl FromWithTcx<clean::Type> for Type {
401
401
402
402
Type :: ResolvedPath {
403
403
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 ( ) ) ,
405
405
args : first_trait
406
406
. segments
407
407
. last ( )
@@ -436,7 +436,7 @@ impl FromWithTcx<clean::Type> for Type {
436
436
} ,
437
437
QPath { name, self_type, trait_, .. } => {
438
438
// 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) ;
440
440
Type :: QualifiedPath {
441
441
name : name. to_string ( ) ,
442
442
self_type : Box :: new ( ( * self_type) . into_tcx ( tcx) ) ,
@@ -513,7 +513,7 @@ impl FromWithTcx<clean::Impl> for Impl {
513
513
} = impl_;
514
514
// FIXME: should `trait_` be a clean::Path equivalent in JSON?
515
515
let trait_ = trait_. map ( |path| {
516
- let did = path. res . def_id ( ) ;
516
+ let did = path. def_id ( ) ;
517
517
clean:: ResolvedPath { path, did } . into_tcx ( tcx)
518
518
} ) ;
519
519
Impl {
0 commit comments