summaryrefslogtreecommitdiff
path: root/src/types.hpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-02-21 21:19:31 +1100
committerJohn Hodge <tpg@mutabah.net>2016-02-21 21:19:31 +1100
commitea3291cbe5192fa20f1a5d4dc45d776e48c21b7d (patch)
tree65e465e32a2c38889b4fdda86509eb978250287f /src/types.hpp
parente674cb99edf50de91f8f5aed3188e30ffb7c88d7 (diff)
downloadmrust-ea3291cbe5192fa20f1a5d4dc45d776e48c21b7d.tar.gz
Fixing parser deficiencies
Diffstat (limited to 'src/types.hpp')
-rw-r--r--src/types.hpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/types.hpp b/src/types.hpp
index 7484d522..0cb8ba9a 100644
--- a/src/types.hpp
+++ b/src/types.hpp
@@ -90,6 +90,7 @@ TAGGED_UNION(TypeData, None,
AST::Path path;
)),
(TraitObject, (
+ ::std::vector<::std::string> hrls;
::std::vector<AST::Path> traits;
))
);
@@ -200,8 +201,8 @@ public:
TypeRef(TagPath(), ::std::move(path))
{}
- TypeRef( ::std::vector<AST::Path> traits ):
- m_data(TypeData::make_TraitObject({ ::std::move(traits) }))
+ TypeRef( ::std::vector<::std::string> hrls, ::std::vector<AST::Path> traits ):
+ m_data(TypeData::make_TraitObject({ mv$(hrls), ::std::move(traits) }))
{}