@@ -365,7 +365,7 @@ impl FromWithTcx<clean::GenericBound> for GenericBound {
365
365
match bound {
366
366
TraitBound ( clean:: PolyTrait { trait_, generic_params } , modifier) => {
367
367
// FIXME: should `trait_` be a clean::Path equivalent in JSON?
368
- let trait_ = clean:: Type :: ResolvedPath { path : trait_ } . into_tcx ( tcx) ;
368
+ let trait_ = clean:: Type :: Path { 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 ( ) ,
@@ -394,7 +394,7 @@ impl FromWithTcx<clean::Type> for Type {
394
394
} ;
395
395
396
396
match ty {
397
- clean:: Type :: ResolvedPath { path } => Type :: ResolvedPath {
397
+ clean:: Type :: Path { path } => Type :: ResolvedPath {
398
398
name : path. whole_name ( ) ,
399
399
id : from_item_id ( path. def_id ( ) . into ( ) ) ,
400
400
args : path. segments . last ( ) . map ( |args| Box :: new ( args. clone ( ) . args . into_tcx ( tcx) ) ) ,
@@ -439,7 +439,7 @@ impl FromWithTcx<clean::Type> for Type {
439
439
} ,
440
440
QPath { name, self_type, trait_, .. } => {
441
441
// FIXME: should `trait_` be a clean::Path equivalent in JSON?
442
- let trait_ = clean:: Type :: ResolvedPath { path : trait_ } . into_tcx ( tcx) ;
442
+ let trait_ = clean:: Type :: Path { path : trait_ } . into_tcx ( tcx) ;
443
443
Type :: QualifiedPath {
444
444
name : name. to_string ( ) ,
445
445
self_type : Box :: new ( ( * self_type) . into_tcx ( tcx) ) ,
@@ -505,7 +505,7 @@ impl FromWithTcx<clean::Impl> for Impl {
505
505
let provided_trait_methods = impl_. provided_trait_methods ( tcx) ;
506
506
let clean:: Impl { unsafety, generics, trait_, for_, items, polarity, kind } = impl_;
507
507
// FIXME: should `trait_` be a clean::Path equivalent in JSON?
508
- let trait_ = trait_. map ( |path| clean:: Type :: ResolvedPath { path } . into_tcx ( tcx) ) ;
508
+ let trait_ = trait_. map ( |path| clean:: Type :: Path { path } . into_tcx ( tcx) ) ;
509
509
// FIXME: use something like ImplKind in JSON?
510
510
let ( synthetic, blanket_impl) = match kind {
511
511
clean:: ImplKind :: Normal => ( false , None ) ,
0 commit comments