@@ -1884,8 +1884,8 @@ pub enum PatKind<'hir> {
1884
1884
Binding ( BindingMode , HirId , Ident , Option < & ' hir Pat < ' hir > > ) ,
1885
1885
1886
1886
/// A struct or struct variant pattern (e.g., `Variant {x, y, ..}`).
1887
- /// The `bool` is `true` in the presence of a `..`.
1888
- Struct ( QPath < ' hir > , & ' hir [ PatField < ' hir > ] , bool ) ,
1887
+ /// The `Option` contains the span a possible `..`.
1888
+ Struct ( QPath < ' hir > , & ' hir [ PatField < ' hir > ] , Option < Span > ) ,
1889
1889
1890
1890
/// A tuple struct/variant pattern `Variant(x, y, .., z)`.
1891
1891
/// If the `..` pattern fragment is present, then `DotDotPos` denotes its position.
@@ -4979,8 +4979,8 @@ mod size_asserts {
4979
4979
static_assert_size ! ( ItemKind <' _>, 64 ) ;
4980
4980
static_assert_size ! ( LetStmt <' _>, 72 ) ;
4981
4981
static_assert_size ! ( Param <' _>, 32 ) ;
4982
- static_assert_size ! ( Pat <' _>, 72 ) ;
4983
- static_assert_size ! ( PatKind <' _>, 48 ) ;
4982
+ static_assert_size ! ( Pat <' _>, 80 ) ;
4983
+ static_assert_size ! ( PatKind <' _>, 56 ) ;
4984
4984
static_assert_size ! ( Path <' _>, 40 ) ;
4985
4985
static_assert_size ! ( PathSegment <' _>, 48 ) ;
4986
4986
static_assert_size ! ( QPath <' _>, 24 ) ;
0 commit comments