diff options
author | John Hodge <tpg@mutabah.net> | 2016-05-24 21:55:06 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-05-24 21:55:06 +0800 |
commit | 23cba420f497b5da5b0a63f078cea2ef2291078a (patch) | |
tree | 96d60ee57ac0014f3a359b94a0ae3db94bae7acd /src/ast/generics.hpp | |
parent | 74868acb8e3db00cbab565abd6fbd76cbf763674 (diff) | |
download | mrust-23cba420f497b5da5b0a63f078cea2ef2291078a.tar.gz |
AST - Spans, spans everywhere!
Diffstat (limited to 'src/ast/generics.hpp')
-rw-r--r-- | src/ast/generics.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ast/generics.hpp b/src/ast/generics.hpp index 288de0a3..4e436e25 100644 --- a/src/ast/generics.hpp +++ b/src/ast/generics.hpp @@ -65,11 +65,13 @@ TAGGED_UNION_EX( GenericBound, (: public Serialisable), Lifetime, }) ), - (), (), + (, span(x.span) ), ( span = x.span; ), ( public: SERIALISABLE_PROTOTYPES(); + Span span; + GenericBound clone() const { TU_MATCH(GenericBound, ( (*this) ), (ent), (Lifetime, return make_Lifetime({ent.test, ent.bound}); ), |