diff options
author | John Hodge <tpg@mutabah.net> | 2015-04-01 22:19:24 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2015-04-01 22:19:24 +0800 |
commit | 60dae965fdb55552d9328356dcfa36c015c6ef83 (patch) | |
tree | c7e653bc2305047570aff0afcd3b9a8fc7cd1661 /src/dump_as_rust.cpp | |
parent | c2684e5058415746c83e38676f91bfc32d2ee6eb (diff) | |
download | mrust-60dae965fdb55552d9328356dcfa36c015c6ef83.tar.gz |
More work on wildcard impls
Diffstat (limited to 'src/dump_as_rust.cpp')
-rw-r--r-- | src/dump_as_rust.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/dump_as_rust.cpp b/src/dump_as_rust.cpp index 45c5df5d..0aca6685 100644 --- a/src/dump_as_rust.cpp +++ b/src/dump_as_rust.cpp @@ -635,14 +635,14 @@ void RustPrinter::handle_module(const AST::Module& mod) { m_os << "\n"; m_os << indent() << "impl"; - print_params(i.params()); - if( !(i.trait() == AST::Path()) ) + print_params(i.def().params()); + if( i.def().trait() != AST::Path() ) { - m_os << " " << i.trait() << " for"; + m_os << " " << i.def().trait() << " for"; } - m_os << " " << i.type() << "\n"; + m_os << " " << i.def().type() << "\n"; - print_bounds(i.params()); + print_bounds(i.def().params()); m_os << indent() << "{\n"; inc_indent(); for( const auto& t : i.types() ) |