@@ -1176,7 +1176,7 @@ impl<'a, 'tcx> Clean<GenericBound> for (&'a ty::TraitRef<'tcx>, Vec<TypeBinding>
1176
1176
PolyTrait {
1177
1177
trait_ : ResolvedPath {
1178
1178
path,
1179
- typarams : None ,
1179
+ param_names : None ,
1180
1180
did : trait_ref. def_id ,
1181
1181
is_generic : false ,
1182
1182
} ,
@@ -2244,7 +2244,7 @@ pub enum Type {
2244
2244
/// Structs/enums/traits (most that'd be an `hir::TyKind::Path`).
2245
2245
ResolvedPath {
2246
2246
path : Path ,
2247
- typarams : Option < Vec < GenericBound > > ,
2247
+ param_names : Option < Vec < GenericBound > > ,
2248
2248
did : DefId ,
2249
2249
/// `true` if is a `T::Name` path for associated types.
2250
2250
is_generic : bool ,
@@ -2706,15 +2706,15 @@ impl Clean<Type> for hir::Ty {
2706
2706
}
2707
2707
TyKind :: TraitObject ( ref bounds, ref lifetime) => {
2708
2708
match bounds[ 0 ] . clean ( cx) . trait_ {
2709
- ResolvedPath { path, typarams : None , did, is_generic } => {
2709
+ ResolvedPath { path, param_names : None , did, is_generic } => {
2710
2710
let mut bounds: Vec < self :: GenericBound > = bounds[ 1 ..] . iter ( ) . map ( |bound| {
2711
2711
self :: GenericBound :: TraitBound ( bound. clean ( cx) ,
2712
2712
hir:: TraitBoundModifier :: None )
2713
2713
} ) . collect ( ) ;
2714
2714
if !lifetime. is_elided ( ) {
2715
2715
bounds. push ( self :: GenericBound :: Outlives ( lifetime. clean ( cx) ) ) ;
2716
2716
}
2717
- ResolvedPath { path, typarams : Some ( bounds) , did, is_generic, }
2717
+ ResolvedPath { path, param_names : Some ( bounds) , did, is_generic, }
2718
2718
}
2719
2719
_ => Infer // shouldn't happen
2720
2720
}
@@ -2781,7 +2781,7 @@ impl<'tcx> Clean<Type> for Ty<'tcx> {
2781
2781
None , false , vec ! [ ] , substs) ;
2782
2782
ResolvedPath {
2783
2783
path,
2784
- typarams : None ,
2784
+ param_names : None ,
2785
2785
did,
2786
2786
is_generic : false ,
2787
2787
}
@@ -2792,7 +2792,7 @@ impl<'tcx> Clean<Type> for Ty<'tcx> {
2792
2792
None , false , vec ! [ ] , InternalSubsts :: empty ( ) ) ;
2793
2793
ResolvedPath {
2794
2794
path : path,
2795
- typarams : None ,
2795
+ param_names : None ,
2796
2796
did : did,
2797
2797
is_generic : false ,
2798
2798
}
@@ -2813,8 +2813,8 @@ impl<'tcx> Clean<Type> for Ty<'tcx> {
2813
2813
2814
2814
inline:: record_extern_fqn ( cx, did, TypeKind :: Trait ) ;
2815
2815
2816
- let mut typarams = vec ! [ ] ;
2817
- reg. clean ( cx) . map ( |b| typarams . push ( GenericBound :: Outlives ( b) ) ) ;
2816
+ let mut param_names = vec ! [ ] ;
2817
+ reg. clean ( cx) . map ( |b| param_names . push ( GenericBound :: Outlives ( b) ) ) ;
2818
2818
for did in dids {
2819
2819
let empty = cx. tcx . intern_substs ( & [ ] ) ;
2820
2820
let path = external_path ( cx, & cx. tcx . item_name ( did) . as_str ( ) ,
@@ -2823,13 +2823,13 @@ impl<'tcx> Clean<Type> for Ty<'tcx> {
2823
2823
let bound = GenericBound :: TraitBound ( PolyTrait {
2824
2824
trait_ : ResolvedPath {
2825
2825
path,
2826
- typarams : None ,
2826
+ param_names : None ,
2827
2827
did,
2828
2828
is_generic : false ,
2829
2829
} ,
2830
2830
generic_params : Vec :: new ( ) ,
2831
2831
} , hir:: TraitBoundModifier :: None ) ;
2832
- typarams . push ( bound) ;
2832
+ param_names . push ( bound) ;
2833
2833
}
2834
2834
2835
2835
let mut bindings = vec ! [ ] ;
@@ -2844,7 +2844,7 @@ impl<'tcx> Clean<Type> for Ty<'tcx> {
2844
2844
false , bindings, substs) ;
2845
2845
ResolvedPath {
2846
2846
path,
2847
- typarams : Some ( typarams ) ,
2847
+ param_names : Some ( param_names ) ,
2848
2848
did,
2849
2849
is_generic : false ,
2850
2850
}
@@ -3294,8 +3294,8 @@ impl Clean<PathSegment> for hir::PathSegment {
3294
3294
3295
3295
fn strip_type ( ty : Type ) -> Type {
3296
3296
match ty {
3297
- Type :: ResolvedPath { path, typarams , did, is_generic } => {
3298
- Type :: ResolvedPath { path : strip_path ( & path) , typarams , did, is_generic }
3297
+ Type :: ResolvedPath { path, param_names , did, is_generic } => {
3298
+ Type :: ResolvedPath { path : strip_path ( & path) , param_names , did, is_generic }
3299
3299
}
3300
3300
Type :: Tuple ( inner_tys) => {
3301
3301
Type :: Tuple ( inner_tys. iter ( ) . map ( |t| strip_type ( t. clone ( ) ) ) . collect ( ) )
@@ -3955,7 +3955,7 @@ fn resolve_type(cx: &DocContext<'_>,
3955
3955
_ => false ,
3956
3956
} ;
3957
3957
let did = register_def ( & * cx, path. def ) ;
3958
- ResolvedPath { path : path, typarams : None , did : did, is_generic : is_generic }
3958
+ ResolvedPath { path : path, param_names : None , did : did, is_generic : is_generic }
3959
3959
}
3960
3960
3961
3961
pub fn register_def ( cx : & DocContext < ' _ > , def : Def ) -> DefId {
@@ -4381,9 +4381,9 @@ impl From<GenericBound> for SimpleBound {
4381
4381
match bound. clone ( ) {
4382
4382
GenericBound :: Outlives ( l) => SimpleBound :: Outlives ( l) ,
4383
4383
GenericBound :: TraitBound ( t, mod_) => match t. trait_ {
4384
- Type :: ResolvedPath { path, typarams , .. } => {
4384
+ Type :: ResolvedPath { path, param_names , .. } => {
4385
4385
SimpleBound :: TraitBound ( path. segments ,
4386
- typarams
4386
+ param_names
4387
4387
. map_or_else ( || Vec :: new ( ) , |v| v. iter ( )
4388
4388
. map ( |p| SimpleBound :: from ( p. clone ( ) ) )
4389
4389
. collect ( ) ) ,
0 commit comments