@@ -1338,14 +1338,13 @@ pub enum ExprKind {
1338
1338
///
1339
1339
/// The `PathSegment` represents the method name and its generic arguments
1340
1340
/// (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])`.
1346
1345
/// This `Span` is the span of the function, without the dot and receiver
1347
1346
/// (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 ) ,
1349
1348
/// A tuple (e.g., `(a, b, c, d)`).
1350
1349
Tup ( Vec < P < Expr > > ) ,
1351
1350
/// A binary operation (e.g., `a + b`, `a * b`).
@@ -3030,22 +3029,25 @@ pub type ForeignItem = Item<ForeignItemKind>;
3030
3029
#[ cfg( all( target_arch = "x86_64" , target_pointer_width = "64" ) ) ]
3031
3030
mod size_asserts {
3032
3031
use super :: * ;
3032
+ use rustc_data_structures:: static_assert_size;
3033
3033
// 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 ) ;
3051
3053
}
0 commit comments