diff options
author | John Hodge (sonata) <tpg@mutabah.net> | 2015-01-18 13:48:31 +0800 |
---|---|---|
committer | John Hodge (sonata) <tpg@mutabah.net> | 2015-01-18 13:48:31 +0800 |
commit | 0e61ec5eafddb980eac2d6577b2e20af9aceae02 (patch) | |
tree | 95fb1a34f87be3ca9fea1f75bf1a6cf70d878577 /src/ast/ast.cpp | |
parent | ba61031285402285e88a16f3788c20f455acc8e3 (diff) | |
download | mrust-0e61ec5eafddb980eac2d6577b2e20af9aceae02.tar.gz |
Up to requiring checks for trait implementations
Diffstat (limited to 'src/ast/ast.cpp')
-rw-r--r-- | src/ast/ast.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/ast/ast.cpp b/src/ast/ast.cpp index 696978fb..21a8b58a 100644 --- a/src/ast/ast.cpp +++ b/src/ast/ast.cpp @@ -291,7 +291,7 @@ SERIALISE_TYPE(Struct::, "AST_Struct", { ::std::ostream& operator<<(::std::ostream& os, const TypeParam& tp)
{
- os << "TypeParam(";
+ //os << "TypeParam(";
switch(tp.m_class)
{
case TypeParam::LIFETIME: os << "'"; break;
@@ -300,7 +300,7 @@ SERIALISE_TYPE(Struct::, "AST_Struct", { os << tp.m_name;
os << " = ";
os << tp.m_default;
- os << ")";
+ //os << ")";
return os;
}
SERIALISE_TYPE(TypeParam::, "AST_TypeParam", {
@@ -338,7 +338,8 @@ SERIALISE_TYPE_S(GenericBound, { ::std::ostream& operator<<(::std::ostream& os, const TypeParams& tps)
{
- return os << "TypeParams({" << tps.m_params << "}, {" << tps.m_bounds << "})";
+ //return os << "TypeParams({" << tps.m_params << "}, {" << tps.m_bounds << "})";
+ return os << "<" << tps.m_params << "> where {" << tps.m_bounds << "}";
}
SERIALISE_TYPE_S(TypeParams, {
s.item(m_params);
|