summaryrefslogtreecommitdiff
path: root/src/hir/pattern.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/hir/pattern.hpp')
-rw-r--r--src/hir/pattern.hpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/hir/pattern.hpp b/src/hir/pattern.hpp
index 13877dbc..205acfcb 100644
--- a/src/hir/pattern.hpp
+++ b/src/hir/pattern.hpp
@@ -70,10 +70,12 @@ struct Pattern
(Box, struct { ::std::unique_ptr<Pattern> sub; }),
(Ref, struct { ::HIR::BorrowType type; ::std::unique_ptr<Pattern> sub; } ),
(Tuple, struct {
- // NOTE: Has the glob still because the tuple isn't yet known
- GlobPos glob_pos;
::std::vector<Pattern> sub_patterns;
}),
+ (SplitTuple, struct {
+ ::std::vector<Pattern> leading;
+ ::std::vector<Pattern> trailing;
+ }),
(StructValue, struct {
GenericPath path;
const Struct* binding;