summaryrefslogtreecommitdiff
path: root/src/dump_as_rust.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2015-03-15 21:33:46 +0800
committerJohn Hodge <tpg@mutabah.net>2015-03-15 21:33:46 +0800
commit6b506092f331a26328a45c00565336ac810b7559 (patch)
tree0dfaa28925dd7c3ae28176161cb420b5f01aabda /src/dump_as_rust.cpp
parent2fffea5c08283746f0b6609024f6c1ea05bf8367 (diff)
downloadmrust-6b506092f331a26328a45c00565336ac810b7559.tar.gz
Rework type params, add ! "type"
Diffstat (limited to 'src/dump_as_rust.cpp')
-rw-r--r--src/dump_as_rust.cpp6
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";
}