@@ -1876,19 +1876,19 @@ pub enum ExprKind<'hir> {
18761876 ///
18771877 /// The `PathSegment` represents the method name and its generic arguments
18781878 /// (within the angle brackets).
1879- /// The first element of the `&[ Expr] ` is the expression that evaluates
1879+ /// The `& Expr` is the expression that evaluates
18801880 /// to the object on which the method is being called on (the receiver),
1881- /// and the remaining elements are the rest of the arguments.
1881+ /// and the `&[Expr]` is the rest of the arguments.
18821882 /// Thus, `x.foo::<Bar, Baz>(a, b, c, d)` is represented as
1883- /// `ExprKind::MethodCall(PathSegment { foo, [Bar, Baz] }, [ x, a, b, c, d], span)`.
1883+ /// `ExprKind::MethodCall(PathSegment { foo, [Bar, Baz] }, x, [ a, b, c, d], span)`.
18841884 /// The final `Span` represents the span of the function and arguments
18851885 /// (e.g. `foo::<Bar, Baz>(a, b, c, d)` in `x.foo::<Bar, Baz>(a, b, c, d)`
18861886 ///
18871887 /// To resolve the called method to a `DefId`, call [`type_dependent_def_id`] with
18881888 /// the `hir_id` of the `MethodCall` node itself.
18891889 ///
18901890 /// [`type_dependent_def_id`]: ../../rustc_middle/ty/struct.TypeckResults.html#method.type_dependent_def_id
1891- MethodCall ( & ' hir PathSegment < ' hir > , & ' hir [ Expr < ' hir > ] , Span ) ,
1891+ MethodCall ( & ' hir PathSegment < ' hir > , & ' hir Expr < ' hir > , & ' hir [ Expr < ' hir > ] , Span ) ,
18921892 /// A tuple (e.g., `(a, b, c, d)`).
18931893 Tup ( & ' hir [ Expr < ' hir > ] ) ,
18941894 /// A binary operation (e.g., `a + b`, `a * b`).
@@ -3492,8 +3492,8 @@ mod size_asserts {
34923492 // These are in alphabetical order, which is easy to maintain.
34933493 static_assert_size ! ( Block <' _>, 48 ) ;
34943494 static_assert_size ! ( Body <' _>, 32 ) ;
3495- static_assert_size ! ( Expr <' _>, 56 ) ;
3496- static_assert_size ! ( ExprKind <' _>, 40 ) ;
3495+ static_assert_size ! ( Expr <' _>, 64 ) ;
3496+ static_assert_size ! ( ExprKind <' _>, 48 ) ;
34973497 static_assert_size ! ( FnDecl <' _>, 40 ) ;
34983498 static_assert_size ! ( ForeignItem <' _>, 72 ) ;
34993499 static_assert_size ! ( ForeignItemKind <' _>, 40 ) ;
0 commit comments