summaryrefslogtreecommitdiff
path: root/src/synexts/derive.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/synexts/derive.cpp')
-rw-r--r--src/synexts/derive.cpp2
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,