summaryrefslogtreecommitdiff
path: root/src/hir/from_ast.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-11-17 15:42:37 +0800
committerJohn Hodge <tpg@mutabah.net>2016-11-17 15:42:37 +0800
commitd8371fadef66162230b8610a255739f6bb7dca4d (patch)
tree195976f7a7876ddb6de584931a84dbbb85a93663 /src/hir/from_ast.cpp
parentee88b79f163a699b6e9123fa322e906c5f95aa66 (diff)
downloadmrust-d8371fadef66162230b8610a255739f6bb7dca4d.tar.gz
HIR - Fix bad handling of split slice patterns
Diffstat (limited to 'src/hir/from_ast.cpp')
-rw-r--r--src/hir/from_ast.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hir/from_ast.cpp b/src/hir/from_ast.cpp
index af5e6118..d45c7ba3 100644
--- a/src/hir/from_ast.cpp
+++ b/src/hir/from_ast.cpp
@@ -452,9 +452,9 @@
trailing.push_back( LowerHIR_Pattern(sp) );
auto extra_bind = e.extra_bind.is_valid()
- ? ::HIR::PatternBinding()
// TODO: Share code with the outer binding code
- : ::HIR::PatternBinding(false, ::HIR::PatternBinding::Type::Ref, e.extra_bind.m_name.name, e.extra_bind.m_slot)
+ ? ::HIR::PatternBinding(false, ::HIR::PatternBinding::Type::Ref, e.extra_bind.m_name.name, e.extra_bind.m_slot)
+ : ::HIR::PatternBinding()
;
return ::HIR::Pattern {