summaryrefslogtreecommitdiff
path: root/src/resolve
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-10-23 19:38:13 +0800
committerJohn Hodge <tpg@mutabah.net>2016-10-23 19:38:13 +0800
commitea3c657845313a274f99cc568ff4e3310e248e15 (patch)
treef8e381baa016bc499cb982bff6e8a2aebe392508 /src/resolve
parent061b63d4fd88e5802927bd42d4b0fd8d5f6fc0f8 (diff)
downloadmrust-ea3c657845313a274f99cc568ff4e3310e248e15.tar.gz
AST+HIR - Add stubbed support for erased types (`impl Trait`)
Diffstat (limited to 'src/resolve')
-rw-r--r--src/resolve/absolute.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/resolve/absolute.cpp b/src/resolve/absolute.cpp
index 4a4ac5cb..ca79094e 100644
--- a/src/resolve/absolute.cpp
+++ b/src/resolve/absolute.cpp
@@ -1500,6 +1500,13 @@ void Resolve_Absolute_Type(Context& context, TypeRef& type)
Resolve_Absolute_Path(context, type.span(), Context::LookupMode::Type, trait);
}
//context.pop_lifetimes();
+ ),
+ (ErasedType,
+ //context.push_lifetimes( e.hrls );
+ for(auto& trait : e.traits) {
+ Resolve_Absolute_Path(context, type.span(), Context::LookupMode::Type, trait);
+ }
+ //context.pop_lifetimes();
)
)
}