@@ -1669,21 +1669,21 @@ pub enum ExprKind<'hir> {
16691669 Call ( & ' hir Expr < ' hir > , & ' hir [ Expr < ' hir > ] ) ,
16701670 /// A method call (e.g., `x.foo::<'static, Bar, Baz>(a, b, c, d)`).
16711671 ///
1672- /// The `PathSegment`/`Span` represent the method name and its generic arguments
1672+ /// The `PathSegment` represents the method name and its generic arguments
16731673 /// (within the angle brackets).
1674- /// The first element of the vector of ` Expr`s is the expression that evaluates
1674+ /// The first element of the `&[ Expr]` is the expression that evaluates
16751675 /// to the object on which the method is being called on (the receiver),
16761676 /// and the remaining elements are the rest of the arguments.
16771677 /// Thus, `x.foo::<Bar, Baz>(a, b, c, d)` is represented as
1678- /// `ExprKind::MethodCall(PathSegment { foo, [Bar, Baz] }, [x, a, b, c, d])`.
1678+ /// `ExprKind::MethodCall(PathSegment { foo, [Bar, Baz] }, [x, a, b, c, d], span )`.
16791679 /// The final `Span` represents the span of the function and arguments
16801680 /// (e.g. `foo::<Bar, Baz>(a, b, c, d)` in `x.foo::<Bar, Baz>(a, b, c, d)`
16811681 ///
16821682 /// To resolve the called method to a `DefId`, call [`type_dependent_def_id`] with
16831683 /// the `hir_id` of the `MethodCall` node itself.
16841684 ///
16851685 /// [`type_dependent_def_id`]: ../ty/struct.TypeckResults.html#method.type_dependent_def_id
1686- MethodCall ( & ' hir PathSegment < ' hir > , Span , & ' hir [ Expr < ' hir > ] , Span ) ,
1686+ MethodCall ( & ' hir PathSegment < ' hir > , & ' hir [ Expr < ' hir > ] , Span ) ,
16871687 /// A tuple (e.g., `(a, b, c, d)`).
16881688 Tup ( & ' hir [ Expr < ' hir > ] ) ,
16891689 /// A binary operation (e.g., `a + b`, `a * b`).
@@ -3257,7 +3257,7 @@ impl<'hir> Node<'hir> {
32573257#[ cfg( all( target_arch = "x86_64" , target_pointer_width = "64" ) ) ]
32583258mod size_asserts {
32593259 rustc_data_structures:: static_assert_size!( super :: Block <' static >, 48 ) ;
3260- rustc_data_structures:: static_assert_size!( super :: Expr <' static >, 64 ) ;
3260+ rustc_data_structures:: static_assert_size!( super :: Expr <' static >, 56 ) ;
32613261 rustc_data_structures:: static_assert_size!( super :: Pat <' static >, 88 ) ;
32623262 rustc_data_structures:: static_assert_size!( super :: QPath <' static >, 24 ) ;
32633263 rustc_data_structures:: static_assert_size!( super :: Ty <' static >, 80 ) ;
0 commit comments