diff options
author | John Hodge <tpg@mutabah.net> | 2015-03-31 10:14:08 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2015-03-31 10:14:08 +0800 |
commit | f5819ef88927734bcc36769b50d1b69de377b5db (patch) | |
tree | 8464350b07e99a9ff1058bfc94e3a29b0b3ab996 /src/dump_as_rust.cpp | |
parent | ace202ef3d35cb5010e9164900c2c825dd6d3e8e (diff) | |
download | mrust-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.cpp | 2 |
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"; } |