summaryrefslogtreecommitdiff
path: root/src/dump_as_rust.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2015-03-31 10:14:08 +0800
committerJohn Hodge <tpg@mutabah.net>2015-03-31 10:14:08 +0800
commitf5819ef88927734bcc36769b50d1b69de377b5db (patch)
tree8464350b07e99a9ff1058bfc94e3a29b0b3ab996 /src/dump_as_rust.cpp
parentace202ef3d35cb5010e9164900c2c825dd6d3e8e (diff)
downloadmrust-f5819ef88927734bcc36769b50d1b69de377b5db.tar.gz
Fully convert trait name in 'impl' to be a AST:Path
Diffstat (limited to 'src/dump_as_rust.cpp')
-rw-r--r--src/dump_as_rust.cpp2
1 files changed, 1 insertions, 1 deletions
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";
}