summaryrefslogtreecommitdiff
path: root/src/ast/ast.hpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2015-04-04 16:25:14 +0800
committerJohn Hodge <tpg@mutabah.net>2015-04-04 16:25:14 +0800
commitc744ebf392209f1dc7dda8900d1e0b16823b55bd (patch)
tree145599928895c06bc9e317623a3f312e660111a9 /src/ast/ast.hpp
parent18c2dbbaa330157006b56d3afc97b89379120ddd (diff)
downloadmrust-c744ebf392209f1dc7dda8900d1e0b16823b55bd.tar.gz
Hacked in parsing of HRLs
Diffstat (limited to 'src/ast/ast.hpp')
-rw-r--r--src/ast/ast.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ast/ast.hpp b/src/ast/ast.hpp
index 1cfae202..2b60ba57 100644
--- a/src/ast/ast.hpp
+++ b/src/ast/ast.hpp
@@ -56,6 +56,7 @@ class GenericBound:
::std::string m_lifetime_bound; // if "", use m_trait
bool m_optional;
AST::Path m_trait;
+ ::std::vector< ::std::string> m_hrls; // Higher-ranked lifetimes
public:
GenericBound() {}
@@ -73,6 +74,10 @@ public:
m_trait( ::std::move(trait) )
{ }
+ void set_higherrank( ::std::vector< ::std::string> hrls ) {
+ m_hrls = mv$(hrls);
+ }
+
bool is_trait() const { return m_lifetime_bound == ""; }
const ::std::string& lifetime() const { return m_lifetime_bound; }
const TypeRef& test() const { return m_type; }