summaryrefslogtreecommitdiff
path: root/src/types.hpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-03-08 11:41:47 +0800
committerJohn Hodge <tpg@mutabah.net>2016-03-08 11:41:47 +0800
commitd631637ae467843ffd969c6003b6c187f498ef5c (patch)
tree71a1908002656186152f8421e6c3a52aca846e31 /src/types.hpp
parent8438c45edf9ee1b561ccfec304d2a36b0671e311 (diff)
downloadmrust-d631637ae467843ffd969c6003b6c187f498ef5c.tar.gz
Spans on MacroInvocation, re-enable span in ERROR reporting
Diffstat (limited to 'src/types.hpp')
-rw-r--r--src/types.hpp5
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)