diff options
Diffstat (limited to 'src/ast/ast.hpp')
-rw-r--r-- | src/ast/ast.hpp | 5 |
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; }
|