From ea3c657845313a274f99cc568ff4e3310e248e15 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Sun, 23 Oct 2016 19:38:13 +0800 Subject: AST+HIR - Add stubbed support for erased types (`impl Trait`) --- src/resolve/absolute.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/resolve') 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 @@ -1495,6 +1495,13 @@ void Resolve_Absolute_Type(Context& context, TypeRef& type) ) ), (TraitObject, + //context.push_lifetimes( e.hrls ); + for(auto& trait : e.traits) { + 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); -- cgit v1.2.3