@@ -731,7 +731,7 @@ impl<'a> AstBuilder<'a> {
731731 span : Span ,
732732 kind : FormalParameterKind ,
733733 items : Vec < ' a , FormalParameter < ' a > > ,
734- rest : Option < Box < ' a , RestElement < ' a > > > ,
734+ rest : Option < Box < ' a , BindingRestElement < ' a > > > ,
735735 ) -> Box < ' a , FormalParameters < ' a > > {
736736 self . alloc ( FormalParameters { span, kind, items, rest } )
737737 }
@@ -938,7 +938,7 @@ impl<'a> AstBuilder<'a> {
938938 & self ,
939939 span : Span ,
940940 properties : Vec < ' a , BindingProperty < ' a > > ,
941- rest : Option < Box < ' a , RestElement < ' a > > > ,
941+ rest : Option < Box < ' a , BindingRestElement < ' a > > > ,
942942 ) -> BindingPatternKind < ' a > {
943943 BindingPatternKind :: ObjectPattern ( self . alloc ( ObjectPattern { span, properties, rest } ) )
944944 }
@@ -966,7 +966,7 @@ impl<'a> AstBuilder<'a> {
966966 & self ,
967967 span : Span ,
968968 elements : Vec < ' a , Option < BindingPattern < ' a > > > ,
969- rest : Option < Box < ' a , RestElement < ' a > > > ,
969+ rest : Option < Box < ' a , BindingRestElement < ' a > > > ,
970970 ) -> BindingPatternKind < ' a > {
971971 BindingPatternKind :: ArrayPattern ( self . alloc ( ArrayPattern { span, elements, rest } ) )
972972 }
@@ -989,8 +989,8 @@ impl<'a> AstBuilder<'a> {
989989 & self ,
990990 span : Span ,
991991 argument : BindingPattern < ' a > ,
992- ) -> Box < ' a , RestElement < ' a > > {
993- self . alloc ( RestElement { span, argument } )
992+ ) -> Box < ' a , BindingRestElement < ' a > > {
993+ self . alloc ( BindingRestElement { span, argument } )
994994 }
995995
996996 pub fn property_key_identifier ( & self , ident : IdentifierName ) -> PropertyKey < ' a > {
0 commit comments