diff options
author | John Hodge <tpg@mutabah.net> | 2015-03-15 21:33:46 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2015-03-15 21:33:46 +0800 |
commit | 6b506092f331a26328a45c00565336ac810b7559 (patch) | |
tree | 0dfaa28925dd7c3ae28176161cb420b5f01aabda /src/dump_as_rust.cpp | |
parent | 2fffea5c08283746f0b6609024f6c1ea05bf8367 (diff) | |
download | mrust-6b506092f331a26328a45c00565336ac810b7559.tar.gz |
Rework type params, add ! "type"
Diffstat (limited to 'src/dump_as_rust.cpp')
-rw-r--r-- | src/dump_as_rust.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/dump_as_rust.cpp b/src/dump_as_rust.cpp index 471a0479..d8d5ad13 100644 --- a/src/dump_as_rust.cpp +++ b/src/dump_as_rust.cpp @@ -623,7 +623,11 @@ void RustPrinter::print_bounds(const AST::TypeParams& params) m_os << ", "; is_first = false; - m_os << indent() << b.name() << ": "; + m_os << indent() << b.test() << ": "; + if( b.is_trait() ) + m_os << b.bound(); + else + m_os << b.lifetime(); m_os << "\n"; } |