diff options
author | John Hodge <tpg@mutabah.net> | 2018-05-25 19:52:39 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2018-05-25 19:52:39 +0800 |
commit | c9475a45f05f73fc669d784c1ca48c720077af31 (patch) | |
tree | fcedef8d900479dd2b74f4ffdf5716845cc80582 /src/hir/type.cpp | |
parent | 704bb17db9a9610b409d729ac511976ea42514c5 (diff) | |
download | mrust-c9475a45f05f73fc669d784c1ca48c720077af31.tar.gz |
HIR - No more name in lifetime params
Diffstat (limited to 'src/hir/type.cpp')
-rw-r--r-- | src/hir/type.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/hir/type.cpp b/src/hir/type.cpp index 0f3ee835..6f826111 100644 --- a/src/hir/type.cpp +++ b/src/hir/type.cpp @@ -112,8 +112,8 @@ void ::HIR::TypeRef::fmt(::std::ostream& os) const } for(const auto& tr : e.m_markers) os << "+" << tr; - if( e.m_lifetime.name != "" ) - os << "+ '" << e.m_lifetime.name; + if( e.m_lifetime != LifetimeRef::new_static() ) + os << "+" << e.m_lifetime; os << ")"; ), (ErasedType, @@ -123,8 +123,8 @@ void ::HIR::TypeRef::fmt(::std::ostream& os) const os << "+"; os << tr; } - if( e.m_lifetime.name != "" ) - os << "+ '" << e.m_lifetime.name; + if( e.m_lifetime != LifetimeRef::new_static() ) + os << "+ '" << e.m_lifetime; os << "/*" << e.m_origin << "#" << e.m_index << "*/"; ), (Array, |