From 18442f4a3a3d5fc838f4703651b6f925d3e0c2f2 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Sat, 19 Nov 2016 15:35:31 +0800 Subject: MIR Gen Match - Handle StructValue --- src/mir/from_hir_match.cpp | 3 +++ 1 file changed, 3 insertions(+) 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) ) -- cgit v1.2.3