summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-11-19 15:35:31 +0800
committerJohn Hodge <tpg@mutabah.net>2016-11-19 15:35:31 +0800
commit18442f4a3a3d5fc838f4703651b6f925d3e0c2f2 (patch)
treec7218f21bcb86307c206cc5aa9e9964b23f6ba21 /src
parentaf14f4b8167b40de6412c30f5d1f496ed0948f7e (diff)
downloadmrust-18442f4a3a3d5fc838f4703651b6f925d3e0c2f2.tar.gz
MIR Gen Match - Handle StructValue
Diffstat (limited to 'src')
-rw-r--r--src/mir/from_hir_match.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mir/from_hir_match.cpp b/src/mir/from_hir_match.cpp
index d7dcc354..8eb61a5f 100644
--- a/src/mir/from_hir_match.cpp
+++ b/src/mir/from_hir_match.cpp
@@ -806,6 +806,9 @@ void PatternRulesetBuilder::append_from(const Span& sp, const ::HIR::Pattern& pa
(Any,
// _ on a unit-like type, unconditional
),
+ (StructValue,
+ // Unit-like struct value, nothing to match (it's unconditional)
+ ),
(Value,
// Unit-like struct value, nothing to match (it's unconditional)
)