summaryrefslogtreecommitdiff
path: root/src/resolve/absolute.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2018-05-27 11:33:04 +0800
committerJohn Hodge <tpg@mutabah.net>2018-05-27 11:33:04 +0800
commitaf1ec8a893d33aa974186d06498d0fc81d22ae7b (patch)
tree294ad6c81512df1901af85df5e563db2a98c33c7 /src/resolve/absolute.cpp
parent84392bea7f6f0754f61d5b424129eb5fa809674d (diff)
downloadmrust-af1ec8a893d33aa974186d06498d0fc81d22ae7b.tar.gz
AST - Include HRBs on fn() types, fix minor parsing bug
Diffstat (limited to 'src/resolve/absolute.cpp')
-rw-r--r--src/resolve/absolute.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/resolve/absolute.cpp b/src/resolve/absolute.cpp
index ceb0e40a..f114fd78 100644
--- a/src/resolve/absolute.cpp
+++ b/src/resolve/absolute.cpp
@@ -1512,10 +1512,12 @@ void Resolve_Absolute_Type(Context& context, TypeRef& type)
(Primitive,
),
(Function,
+ context.push( e.info.hrbs );
Resolve_Absolute_Type(context, *e.info.m_rettype);
for(auto& t : e.info.m_arg_types) {
Resolve_Absolute_Type(context, t);
}
+ context.pop( e.info.hrbs );
),
(Tuple,
for(auto& t : e.inner_types)