diff options
author | John Hodge <tpg@ucc.asn.au> | 2019-01-27 11:07:20 +0800 |
---|---|---|
committer | John Hodge <tpg@ucc.asn.au> | 2019-01-27 11:07:20 +0800 |
commit | dd4114b9e985f2fea0cf0f73ed765484d3df2f47 (patch) | |
tree | 825ee87cfcc3773943ed3bbd2c8586e8b81d6c98 /src | |
parent | 4f48058690ffc6af273a49eeb909d792163cade9 (diff) | |
download | mrust-dd4114b9e985f2fea0cf0f73ed765484d3df2f47.tar.gz |
AST - (minor) Tweak printing of lifetime params
Diffstat (limited to 'src')
-rw-r--r-- | src/ast/path.cpp | 2 | ||||
-rw-r--r-- | src/ast/types.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
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 << "*/"; } |