@@ -1876,19 +1876,19 @@ pub enum ExprKind<'hir> {
1876
1876
///
1877
1877
/// The `PathSegment` represents the method name and its generic arguments
1878
1878
/// (within the angle brackets).
1879
- /// The first element of the `&[ Expr] ` is the expression that evaluates
1879
+ /// The `& Expr` is the expression that evaluates
1880
1880
/// 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.
1882
1882
/// 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)`.
1884
1884
/// The final `Span` represents the span of the function and arguments
1885
1885
/// (e.g. `foo::<Bar, Baz>(a, b, c, d)` in `x.foo::<Bar, Baz>(a, b, c, d)`
1886
1886
///
1887
1887
/// To resolve the called method to a `DefId`, call [`type_dependent_def_id`] with
1888
1888
/// the `hir_id` of the `MethodCall` node itself.
1889
1889
///
1890
1890
/// [`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 ) ,
1892
1892
/// A tuple (e.g., `(a, b, c, d)`).
1893
1893
Tup ( & ' hir [ Expr < ' hir > ] ) ,
1894
1894
/// A binary operation (e.g., `a + b`, `a * b`).
@@ -3492,8 +3492,8 @@ mod size_asserts {
3492
3492
// These are in alphabetical order, which is easy to maintain.
3493
3493
static_assert_size ! ( Block <' _>, 48 ) ;
3494
3494
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 ) ;
3497
3497
static_assert_size ! ( FnDecl <' _>, 40 ) ;
3498
3498
static_assert_size ! ( ForeignItem <' _>, 72 ) ;
3499
3499
static_assert_size ! ( ForeignItemKind <' _>, 40 ) ;
0 commit comments