@@ -1338,14 +1338,13 @@ pub enum ExprKind {
13381338 ///
13391339 /// The `PathSegment` represents the method name and its generic arguments
13401340 /// (within the angle brackets).
1341- /// The first element of the vector of an `Expr` is the expression that evaluates
1342- /// to the object on which the method is being called on (the receiver),
1343- /// and the remaining elements are the rest of the arguments.
1344- /// Thus, `x.foo::<Bar, Baz>(a, b, c, d)` is represented as
1345- /// `ExprKind::MethodCall(PathSegment { foo, [Bar, Baz] }, [x, a, b, c, d])`.
1341+ /// The standalone `Expr` is the receiver expression.
1342+ /// The vector of `Expr` is the arguments.
1343+ /// `x.foo::<Bar, Baz>(a, b, c, d)` is represented as
1344+ /// `ExprKind::MethodCall(PathSegment { foo, [Bar, Baz] }, x, [a, b, c, d])`.
13461345 /// This `Span` is the span of the function, without the dot and receiver
13471346 /// (e.g. `foo(a, b)` in `x.foo(a, b)`
1348- MethodCall ( PathSegment , Vec < P < Expr > > , Span ) ,
1347+ MethodCall ( PathSegment , P < Expr > , Vec < P < Expr > > , Span ) ,
13491348 /// A tuple (e.g., `(a, b, c, d)`).
13501349 Tup ( Vec < P < Expr > > ) ,
13511350 /// A binary operation (e.g., `a + b`, `a * b`).
@@ -3030,22 +3029,25 @@ pub type ForeignItem = Item<ForeignItemKind>;
30303029#[ cfg( all( target_arch = "x86_64" , target_pointer_width = "64" ) ) ]
30313030mod size_asserts {
30323031 use super :: * ;
3032+ use rustc_data_structures:: static_assert_size;
30333033 // These are in alphabetical order, which is easy to maintain.
3034- rustc_data_structures:: static_assert_size!( AssocItemKind , 72 ) ;
3035- rustc_data_structures:: static_assert_size!( Attribute , 152 ) ;
3036- rustc_data_structures:: static_assert_size!( Block , 48 ) ;
3037- rustc_data_structures:: static_assert_size!( Expr , 104 ) ;
3038- rustc_data_structures:: static_assert_size!( Fn , 192 ) ;
3039- rustc_data_structures:: static_assert_size!( ForeignItemKind , 72 ) ;
3040- rustc_data_structures:: static_assert_size!( GenericBound , 88 ) ;
3041- rustc_data_structures:: static_assert_size!( Generics , 72 ) ;
3042- rustc_data_structures:: static_assert_size!( Impl , 200 ) ;
3043- rustc_data_structures:: static_assert_size!( Item , 200 ) ;
3044- rustc_data_structures:: static_assert_size!( ItemKind , 112 ) ;
3045- rustc_data_structures:: static_assert_size!( Lit , 48 ) ;
3046- rustc_data_structures:: static_assert_size!( Pat , 120 ) ;
3047- rustc_data_structures:: static_assert_size!( Path , 40 ) ;
3048- rustc_data_structures:: static_assert_size!( PathSegment , 24 ) ;
3049- rustc_data_structures:: static_assert_size!( Stmt , 32 ) ;
3050- rustc_data_structures:: static_assert_size!( Ty , 96 ) ;
3034+ static_assert_size ! ( AssocItem , 160 ) ;
3035+ static_assert_size ! ( AssocItemKind , 72 ) ;
3036+ static_assert_size ! ( Attribute , 152 ) ;
3037+ static_assert_size ! ( Block , 48 ) ;
3038+ static_assert_size ! ( Expr , 104 ) ;
3039+ static_assert_size ! ( Fn , 192 ) ;
3040+ static_assert_size ! ( ForeignItem , 160 ) ;
3041+ static_assert_size ! ( ForeignItemKind , 72 ) ;
3042+ static_assert_size ! ( GenericBound , 88 ) ;
3043+ static_assert_size ! ( Generics , 72 ) ;
3044+ static_assert_size ! ( Impl , 200 ) ;
3045+ static_assert_size ! ( Item , 200 ) ;
3046+ static_assert_size ! ( ItemKind , 112 ) ;
3047+ static_assert_size ! ( Lit , 48 ) ;
3048+ static_assert_size ! ( Pat , 120 ) ;
3049+ static_assert_size ! ( Path , 40 ) ;
3050+ static_assert_size ! ( PathSegment , 24 ) ;
3051+ static_assert_size ! ( Stmt , 32 ) ;
3052+ static_assert_size ! ( Ty , 96 ) ;
30513053}
0 commit comments