From dd4114b9e985f2fea0cf0f73ed765484d3df2f47 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Sun, 27 Jan 2019 11:07:20 +0800 Subject: AST - (minor) Tweak printing of lifetime params --- src/ast/path.cpp | 2 +- src/ast/types.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/ast/path.cpp b/src/ast/path.cpp index 0c8c4c69..092f5962 100644 --- a/src/ast/path.cpp +++ b/src/ast/path.cpp @@ -109,7 +109,7 @@ PathBinding_Macro PathBinding_Macro::clone() const for(const auto& v : x.m_lifetimes) { if(needs_comma) os << ", "; needs_comma = true; - os << "'" << v; + os << v; } for(const auto& v : x.m_types) { if(needs_comma) os << ", "; diff --git a/src/ast/types.cpp b/src/ast/types.cpp index 98bc6ee1..f9103b37 100644 --- a/src/ast/types.cpp +++ b/src/ast/types.cpp @@ -323,7 +323,7 @@ namespace AST { os << "'_"; } else { - os << "'" << x.m_name; + os << "'" << x.m_name.name; if( x.m_binding != LifetimeRef::BINDING_UNBOUND ) { os << "/*" << x.m_binding << "*/"; } -- cgit v1.2.3