diff options
author | John Hodge <tpg@mutabah.net> | 2016-11-19 15:35:31 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-11-19 15:35:31 +0800 |
commit | 18442f4a3a3d5fc838f4703651b6f925d3e0c2f2 (patch) | |
tree | c7218f21bcb86307c206cc5aa9e9964b23f6ba21 | |
parent | af14f4b8167b40de6412c30f5d1f496ed0948f7e (diff) | |
download | mrust-18442f4a3a3d5fc838f4703651b6f925d3e0c2f2.tar.gz |
MIR Gen Match - Handle StructValue
-rw-r--r-- | src/mir/from_hir_match.cpp | 3 |
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) ) |