summaryrefslogtreecommitdiff
path: root/src/resolve/absolute.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-11-22 21:57:59 +0800
committerJohn Hodge <tpg@mutabah.net>2016-11-22 21:57:59 +0800
commitf459cf31501bba8d61e34a2850023dccf57e2466 (patch)
treef8cfa638f4aeeea6135ddcbccdca94d969fea185 /src/resolve/absolute.cpp
parent91fc04283896d0db76f601228bd202bcd0291b17 (diff)
downloadmrust-f459cf31501bba8d61e34a2850023dccf57e2466.tar.gz
Resolve Absolute - Search value scope for tuple struct patterns
Diffstat (limited to 'src/resolve/absolute.cpp')
-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 fd451ca5..0b9c2476 100644
--- a/src/resolve/absolute.cpp
+++ b/src/resolve/absolute.cpp
@@ -1774,7 +1774,7 @@ void Resolve_Absolute_Pattern(Context& context, bool allow_refutable, ::AST::Pa
Resolve_Absolute_Pattern(context, allow_refutable, sp);
),
(StructTuple,
- Resolve_Absolute_Path(context, pat.span(), Context::LookupMode::Pattern, e.path);
+ Resolve_Absolute_Path(context, pat.span(), Context::LookupMode::Constant, e.path);
for(auto& sp : e.tup_pat.start)
Resolve_Absolute_Pattern(context, allow_refutable, sp);
for(auto& sp : e.tup_pat.end)