diff options
author | John Hodge <tpg@mutabah.net> | 2015-04-04 08:14:06 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2015-04-04 08:14:06 +0800 |
commit | b532739cc38f6754770b7a3f8a285df6aa5cd532 (patch) | |
tree | 12a2af495998ef3b0b2beb1a83a35c7fe3a84409 /src/synexts/derive.cpp | |
parent | c15006c15505ae785eb5447c055b8f9379e7fcde (diff) | |
download | mrust-b532739cc38f6754770b7a3f8a285df6aa5cd532.tar.gz |
Partial auto-determining of wildcard trait impls
Diffstat (limited to 'src/synexts/derive.cpp')
-rw-r--r-- | src/synexts/derive.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/synexts/derive.cpp b/src/synexts/derive.cpp index ccb4fb00..e6f191d0 100644 --- a/src/synexts/derive.cpp +++ b/src/synexts/derive.cpp @@ -47,6 +47,8 @@ class Deriver_Debug: public: AST::Impl handle_item(const AST::TypeParams& p, const TypeRef& type, const AST::Struct& str) const override { + // TODO: be correct herhe and use "core" as the crate name + // - Requires handling the crate_name crate attribute correctly const AST::Path debug_trait("", { AST::PathNode("fmt", {}), AST::PathNode("Debug", {}) }); const TypeRef ret_type(AST::Path("", {AST::PathNode("fmt",{}), AST::PathNode("Result",{})}) ); const TypeRef f_type(TypeRef::TagReference(), true, |