diff options
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() ) |