summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-09-07 12:24:57 +0800
committerJohn Hodge <tpg@mutabah.net>2016-09-07 12:24:57 +0800
commita8fbfa06f2e8473e9190f5192b625a1d23b3c936 (patch)
tree252c4aaa5c89607a7b617578eaf031fde5a30169 /src
parente8cee52298043bad97b0e5482e4807bdbad825ca (diff)
downloadmrust-a8fbfa06f2e8473e9190f5192b625a1d23b3c936.tar.gz
Resolve Abs - Better impl of previous hack
Diffstat (limited to 'src')
-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 507ad3d7..b2966022 100644
--- a/src/resolve/absolute.cpp
+++ b/src/resolve/absolute.cpp
@@ -1561,9 +1561,9 @@ void Resolve_Absolute_Pattern(Context& context, bool allow_refutable, ::AST::Pa
// Attempt to resolve the name in the current namespace, and if it fails, it's a binding
auto p = context.lookup_opt( name, Context::LookupMode::Constant );
if( p.is_valid() ) {
+ Resolve_Absolute_Path(context, pat.span(), Context::LookupMode::Constant, p);
pat = ::AST::Pattern(::AST::Pattern::TagValue(), ::AST::Pattern::Value::make_Named(mv$(p)));
DEBUG("MaybeBind resolved to " << pat);
- Resolve_Absolute_Pattern(context, allow_refutable, pat);
}
else {
pat = ::AST::Pattern(::AST::Pattern::TagBind(), mv$(name));