diff options
| author | Valdemar Erk <valdemar@erk.dev> | 2025-08-23 11:37:53 +0200 |
|---|---|---|
| committer | Valdemar Erk <valdemar@erk.dev> | 2025-08-25 09:55:50 +0200 |
| commit | 75d8687f2b6ac1e73071450cb57c4157fcba53b4 (patch) | |
| tree | d9c2aa30e6cb91a029360e071dde0b580a8899c1 /compiler/rustc_ast | |
| parent | 8df154bffddcb6bbb543ad69aff971795c5adbc2 (diff) | |
| download | rust-75d8687f2b6ac1e73071450cb57c4157fcba53b4.tar.gz rust-75d8687f2b6ac1e73071450cb57c4157fcba53b4.zip | |
add span to struct pattern rest (..)
Diffstat (limited to 'compiler/rustc_ast')
| -rw-r--r-- | compiler/rustc_ast/src/ast.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_ast/src/ast.rs b/compiler/rustc_ast/src/ast.rs index de3e0e0c87f..802a6fa3249 100644 --- a/compiler/rustc_ast/src/ast.rs +++ b/compiler/rustc_ast/src/ast.rs @@ -937,7 +937,7 @@ pub enum PatKind { #[derive(Clone, Copy, Encodable, Decodable, Debug, PartialEq, Walkable)] pub enum PatFieldsRest { /// `module::StructName { field, ..}` - Rest, + Rest(Span), /// `module::StructName { field, syntax error }` Recovered(ErrorGuaranteed), /// `module::StructName { field }` @@ -4051,8 +4051,8 @@ mod size_asserts { static_assert_size!(Local, 96); static_assert_size!(MetaItemLit, 40); static_assert_size!(Param, 40); - static_assert_size!(Pat, 72); - static_assert_size!(PatKind, 48); + static_assert_size!(Pat, 80); + static_assert_size!(PatKind, 56); static_assert_size!(Path, 24); static_assert_size!(PathSegment, 24); static_assert_size!(Stmt, 32); |
