summaryrefslogtreecommitdiff
path: root/src/ast/ast.cpp
diff options
context:
space:
mode:
authorJohn Hodge (sonata) <tpg@mutabah.net>2015-01-18 12:56:30 +0800
committerJohn Hodge (sonata) <tpg@mutabah.net>2015-01-18 12:56:30 +0800
commitba61031285402285e88a16f3788c20f455acc8e3 (patch)
tree8407f6ea4cbe1e5a2aed163ef5a4ebb22b5ddad4 /src/ast/ast.cpp
parent0390dc8a92c3c8d12421d529915ab350234301c3 (diff)
downloadmrust-ba61031285402285e88a16f3788c20f455acc8e3.tar.gz
Added support for associated types in impl blocks
Diffstat (limited to 'src/ast/ast.cpp')
-rw-r--r--src/ast/ast.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ast/ast.cpp b/src/ast/ast.cpp
index c8cf8188..696978fb 100644
--- a/src/ast/ast.cpp
+++ b/src/ast/ast.cpp
@@ -327,7 +327,8 @@ SERIALISE_TYPE(TypeParam::, "AST_TypeParam", {
::std::ostream& operator<<(::std::ostream& os, const GenericBound& x)
{
- return os << "GenericBound(" << x.m_argname << "," << x.m_lifetime << "," << x.m_trait << ")";
+ //return os << "GenericBound(" << x.m_argname << "," << x.m_lifetime << "," << x.m_trait << ")";
+ return os << x.m_argname << ": ('" << x.m_lifetime << " + " << x.m_trait << ")";
}
SERIALISE_TYPE_S(GenericBound, {
s.item(m_argname);