summaryrefslogtreecommitdiff
path: root/src/hir/type.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2018-05-25 19:52:39 +0800
committerJohn Hodge <tpg@mutabah.net>2018-05-25 19:52:39 +0800
commitc9475a45f05f73fc669d784c1ca48c720077af31 (patch)
treefcedef8d900479dd2b74f4ffdf5716845cc80582 /src/hir/type.cpp
parent704bb17db9a9610b409d729ac511976ea42514c5 (diff)
downloadmrust-c9475a45f05f73fc669d784c1ca48c720077af31.tar.gz
HIR - No more name in lifetime params
Diffstat (limited to 'src/hir/type.cpp')
-rw-r--r--src/hir/type.cpp8
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,