summaryrefslogtreecommitdiff
path: root/src/resolve
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/resolve
parentee88b79f163a699b6e9123fa322e906c5f95aa66 (diff)
downloadmrust-d8371fadef66162230b8610a255739f6bb7dca4d.tar.gz
HIR - Fix bad handling of split slice patterns
Diffstat (limited to 'src/resolve')
-rw-r--r--src/resolve/absolute.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resolve/absolute.cpp b/src/resolve/absolute.cpp
index 788a1392..60b6c193 100644
--- a/src/resolve/absolute.cpp
+++ b/src/resolve/absolute.cpp
@@ -1790,7 +1790,7 @@ void Resolve_Absolute_Pattern(Context& context, bool allow_refutable, ::AST::Pa
for(auto& sp : e.leading)
Resolve_Absolute_Pattern(context, allow_refutable, sp);
if( e.extra_bind.is_valid() ) {
- context.push_var( pat.span(), e.extra_bind.m_name );
+ e.extra_bind.m_slot = context.push_var( pat.span(), e.extra_bind.m_name );
}
for(auto& sp : e.trailing)
Resolve_Absolute_Pattern(context, allow_refutable, sp);