@@ -140,7 +140,7 @@ pub(crate) enum SegmentParam<'a> {
140140 Const ( & ' a ast:: AnonConst ) ,
141141 LifeTime ( & ' a ast:: Lifetime ) ,
142142 Type ( & ' a ast:: Ty ) ,
143- Binding ( & ' a ast:: AssocConstraint ) ,
143+ Binding ( & ' a ast:: AssocItemConstraint ) ,
144144}
145145
146146impl < ' a > SegmentParam < ' a > {
@@ -175,9 +175,9 @@ impl<'a> Rewrite for SegmentParam<'a> {
175175 }
176176}
177177
178- impl Rewrite for ast:: AssocConstraint {
178+ impl Rewrite for ast:: AssocItemConstraint {
179179 fn rewrite ( & self , context : & RewriteContext < ' _ > , shape : Shape ) -> Option < String > {
180- use ast:: AssocConstraintKind :: { Bound , Equality } ;
180+ use ast:: AssocItemConstraintKind :: { Bound , Equality } ;
181181
182182 let mut result = String :: with_capacity ( 128 ) ;
183183 result. push_str ( rewrite_ident ( context, self . ident ) ) ;
@@ -205,14 +205,14 @@ impl Rewrite for ast::AssocConstraint {
205205 }
206206}
207207
208- impl Rewrite for ast:: AssocConstraintKind {
208+ impl Rewrite for ast:: AssocItemConstraintKind {
209209 fn rewrite ( & self , context : & RewriteContext < ' _ > , shape : Shape ) -> Option < String > {
210210 match self {
211- ast:: AssocConstraintKind :: Equality { term } => match term {
211+ ast:: AssocItemConstraintKind :: Equality { term } => match term {
212212 Term :: Ty ( ty) => ty. rewrite ( context, shape) ,
213213 Term :: Const ( c) => c. rewrite ( context, shape) ,
214214 } ,
215- ast:: AssocConstraintKind :: Bound { bounds } => bounds. rewrite ( context, shape) ,
215+ ast:: AssocItemConstraintKind :: Bound { bounds } => bounds. rewrite ( context, shape) ,
216216 }
217217 }
218218}
0 commit comments