@@ -119,7 +119,7 @@ impl Clean<GenericBound> for hir::GenericBound<'_> {
119
119
120
120
impl Clean < Path > for ( ty:: TraitRef < ' _ > , & [ TypeBinding ] ) {
121
121
fn clean ( & self , cx : & mut DocContext < ' _ > ) -> Path {
122
- let ( trait_ref, bounds ) = * self ;
122
+ let ( trait_ref, bindings ) = * self ;
123
123
let kind = cx. tcx . def_kind ( trait_ref. def_id ) . into ( ) ;
124
124
if !matches ! ( kind, ItemType :: Trait | ItemType :: TraitAlias ) {
125
125
span_bug ! (
@@ -129,7 +129,7 @@ impl Clean<Path> for (ty::TraitRef<'_>, &[TypeBinding]) {
129
129
) ;
130
130
}
131
131
inline:: record_extern_fqn ( cx, trait_ref. def_id , kind) ;
132
- let path = external_path ( cx, trait_ref. def_id , true , bounds . to_vec ( ) , trait_ref. substs ) ;
132
+ let path = external_path ( cx, trait_ref. def_id , true , bindings . to_vec ( ) , trait_ref. substs ) ;
133
133
134
134
debug ! ( "ty::TraitRef\n subst: {:?}\n " , trait_ref. substs) ;
135
135
@@ -145,7 +145,7 @@ impl Clean<Path> for ty::TraitRef<'tcx> {
145
145
146
146
impl Clean < GenericBound > for ( ty:: PolyTraitRef < ' _ > , & [ TypeBinding ] ) {
147
147
fn clean ( & self , cx : & mut DocContext < ' _ > ) -> GenericBound {
148
- let ( poly_trait_ref, bounds ) = * self ;
148
+ let ( poly_trait_ref, bindings ) = * self ;
149
149
let poly_trait_ref = poly_trait_ref. lift_to_tcx ( cx. tcx ) . unwrap ( ) ;
150
150
151
151
// collect any late bound regions
@@ -164,7 +164,7 @@ impl Clean<GenericBound> for (ty::PolyTraitRef<'_>, &[TypeBinding]) {
164
164
165
165
GenericBound :: TraitBound (
166
166
PolyTrait {
167
- trait_ : ( poly_trait_ref. skip_binder ( ) , bounds ) . clean ( cx) ,
167
+ trait_ : ( poly_trait_ref. skip_binder ( ) , bindings ) . clean ( cx) ,
168
168
generic_params : late_bound_regions,
169
169
} ,
170
170
hir:: TraitBoundModifier :: None ,
0 commit comments