From f5819ef88927734bcc36769b50d1b69de377b5db Mon Sep 17 00:00:00 2001 From: John Hodge Date: Tue, 31 Mar 2015 10:14:08 +0800 Subject: Fully convert trait name in 'impl' to be a AST:Path --- src/dump_as_rust.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/dump_as_rust.cpp') diff --git a/src/dump_as_rust.cpp b/src/dump_as_rust.cpp index bac9d104..45c5df5d 100644 --- a/src/dump_as_rust.cpp +++ b/src/dump_as_rust.cpp @@ -636,7 +636,7 @@ void RustPrinter::handle_module(const AST::Module& mod) m_os << "\n"; m_os << indent() << "impl"; print_params(i.params()); - if( i.trait() != TypeRef() ) + if( !(i.trait() == AST::Path()) ) { m_os << " " << i.trait() << " for"; } -- cgit v1.2.3