@@ -496,7 +496,7 @@ impl ExprCollector<'_> {
496496 self . alloc_expr ( Expr :: BinaryOp { lhs, rhs, op } , syntax_ptr)
497497 }
498498 ast:: Expr :: TupleExpr ( e) => {
499- let exprs = e. exprs ( ) . map ( |expr| self . collect_expr ( expr) ) . collect ( ) ;
499+ let exprs = e. fields ( ) . map ( |expr| self . collect_expr ( expr) ) . collect ( ) ;
500500 self . alloc_expr ( Expr :: Tuple { exprs } , syntax_ptr)
501501 }
502502 ast:: Expr :: BoxExpr ( e) => {
@@ -762,7 +762,7 @@ impl ExprCollector<'_> {
762762 }
763763 ast:: Pat :: TupleStructPat ( p) => {
764764 let path = p. path ( ) . and_then ( |path| self . expander . parse_path ( path) ) ;
765- let ( args, ellipsis) = self . collect_tuple_pat ( p. args ( ) ) ;
765+ let ( args, ellipsis) = self . collect_tuple_pat ( p. fields ( ) ) ;
766766 Pat :: TupleStruct { path, args, ellipsis }
767767 }
768768 ast:: Pat :: RefPat ( p) => {
@@ -780,7 +780,7 @@ impl ExprCollector<'_> {
780780 }
781781 ast:: Pat :: ParenPat ( p) => return self . collect_pat_opt ( p. pat ( ) ) ,
782782 ast:: Pat :: TuplePat ( p) => {
783- let ( args, ellipsis) = self . collect_tuple_pat ( p. args ( ) ) ;
783+ let ( args, ellipsis) = self . collect_tuple_pat ( p. fields ( ) ) ;
784784 Pat :: Tuple { args, ellipsis }
785785 }
786786 ast:: Pat :: WildcardPat ( _) => Pat :: Wild ,
@@ -809,7 +809,7 @@ impl ExprCollector<'_> {
809809 ast:: Pat :: SlicePat ( p) => {
810810 let SlicePatComponents { prefix, slice, suffix } = p. components ( ) ;
811811
812- // FIXME properly handle `DotDotPat `
812+ // FIXME properly handle `RestPat `
813813 Pat :: Slice {
814814 prefix : prefix. into_iter ( ) . map ( |p| self . collect_pat ( p) ) . collect ( ) ,
815815 slice : slice. map ( |p| self . collect_pat ( p) ) ,
@@ -827,9 +827,9 @@ impl ExprCollector<'_> {
827827 }
828828 }
829829 ast:: Pat :: RestPat ( _) => {
830- // `DotDotPat ` requires special handling and should not be mapped
830+ // `RestPat ` requires special handling and should not be mapped
831831 // to a Pat. Here we are using `Pat::Missing` as a fallback for
832- // when `DotDotPat ` is mapped to `Pat`, which can easily happen
832+ // when `RestPat ` is mapped to `Pat`, which can easily happen
833833 // when the source code being analyzed has a malformed pattern
834834 // which includes `..` in a place where it isn't valid.
835835
0 commit comments