diff options
author | John Hodge <tpg@mutabah.net> | 2016-03-08 11:41:47 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-03-08 11:41:47 +0800 |
commit | d631637ae467843ffd969c6003b6c187f498ef5c (patch) | |
tree | 71a1908002656186152f8421e6c3a52aca846e31 /src/types.hpp | |
parent | 8438c45edf9ee1b561ccfec304d2a36b0671e311 (diff) | |
download | mrust-d631637ae467843ffd969c6003b6c187f498ef5c.tar.gz |
Spans on MacroInvocation, re-enable span in ERROR reporting
Diffstat (limited to 'src/types.hpp')
-rw-r--r-- | src/types.hpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/types.hpp b/src/types.hpp index 24c0d9ea..5b19d036 100644 --- a/src/types.hpp +++ b/src/types.hpp @@ -103,6 +103,7 @@ TAGGED_UNION(TypeData, None, class TypeRef:
public Serialisable
{
+ Span m_span;
public:
TypeData m_data;
@@ -215,7 +216,9 @@ public: m_data(TypeData::make_TraitObject({ mv$(hrls), ::std::move(traits) }))
{}
-
+
+ const Span& span() const { return m_span; }
+
/// Dereference the type (return the result of *type_instance)
bool deref(bool is_implicit);
/// Merge with another type (combines known aspects, conflitcs cause an exception)
|