@@ -1669,21 +1669,21 @@ pub enum ExprKind<'hir> {
1669
1669
Call ( & ' hir Expr < ' hir > , & ' hir [ Expr < ' hir > ] ) ,
1670
1670
/// A method call (e.g., `x.foo::<'static, Bar, Baz>(a, b, c, d)`).
1671
1671
///
1672
- /// The `PathSegment`/`Span` represent the method name and its generic arguments
1672
+ /// The `PathSegment` represents the method name and its generic arguments
1673
1673
/// (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
1675
1675
/// to the object on which the method is being called on (the receiver),
1676
1676
/// and the remaining elements are the rest of the arguments.
1677
1677
/// 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 )`.
1679
1679
/// The final `Span` represents the span of the function and arguments
1680
1680
/// (e.g. `foo::<Bar, Baz>(a, b, c, d)` in `x.foo::<Bar, Baz>(a, b, c, d)`
1681
1681
///
1682
1682
/// To resolve the called method to a `DefId`, call [`type_dependent_def_id`] with
1683
1683
/// the `hir_id` of the `MethodCall` node itself.
1684
1684
///
1685
1685
/// [`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 ) ,
1687
1687
/// A tuple (e.g., `(a, b, c, d)`).
1688
1688
Tup ( & ' hir [ Expr < ' hir > ] ) ,
1689
1689
/// A binary operation (e.g., `a + b`, `a * b`).
@@ -3257,7 +3257,7 @@ impl<'hir> Node<'hir> {
3257
3257
#[ cfg( all( target_arch = "x86_64" , target_pointer_width = "64" ) ) ]
3258
3258
mod size_asserts {
3259
3259
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 ) ;
3261
3261
rustc_data_structures:: static_assert_size!( super :: Pat <' static >, 88 ) ;
3262
3262
rustc_data_structures:: static_assert_size!( super :: QPath <' static >, 24 ) ;
3263
3263
rustc_data_structures:: static_assert_size!( super :: Ty <' static >, 80 ) ;
0 commit comments