diff options
author | John Hodge <tpg@mutabah.net> | 2015-04-05 13:17:36 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2015-04-05 13:17:36 +0800 |
commit | 7bee527fa774c397390618380bdab8bf4dec9cb0 (patch) | |
tree | bd8acf26cc9b431e135d03a3dcf4ebc6fa5d8202 /src/convert/ast_iterate.cpp | |
parent | 0a5017bee88d6bf4acaf78a784c2d978ee71a87e (diff) | |
download | mrust-7bee527fa774c397390618380bdab8bf4dec9cb0.tar.gz |
Replace 'Self' at resolve-time, with special case for bounds
Diffstat (limited to 'src/convert/ast_iterate.cpp')
-rw-r--r-- | src/convert/ast_iterate.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/convert/ast_iterate.cpp b/src/convert/ast_iterate.cpp index 46ca4458..a2fed087 100644 --- a/src/convert/ast_iterate.cpp +++ b/src/convert/ast_iterate.cpp @@ -337,9 +337,11 @@ void CASTIterator::handle_enum(AST::Path path, AST::Enum& enm) void CASTIterator::handle_trait(AST::Path path, AST::Trait& trait) { start_scope(); + local_type("Self", TypeRef(TypeRef::TagArg(), "Self")); handle_params( trait.params() ); - local_type("Self", TypeRef(path)); + //local_type("Self", TypeRef(path)); + //local_type("Self", TypeRef(TypeRef::TagArg(), "Self")); for( auto& fcn : trait.functions() ) handle_function( path + fcn.name, fcn.data ); |