diff options
author | John Hodge <tpg@mutabah.net> | 2016-10-26 10:35:59 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-10-26 10:35:59 +0800 |
commit | 9fc7a883831b9186b666e2f9addc81c6d8a8d5b2 (patch) | |
tree | e1f0857855b2231a1795012c9df669afa0092320 /src | |
parent | 9116a368440ac9a1642f4182c0641e3004b85374 (diff) | |
download | mrust-9fc7a883831b9186b666e2f9addc81c6d8a8d5b2.tar.gz |
(minor) Commenting
Diffstat (limited to 'src')
-rw-r--r-- | src/expand/derive.cpp | 4 | ||||
-rw-r--r-- | src/hir/from_ast.cpp | 1 |
2 files changed, 1 insertions, 4 deletions
diff --git a/src/expand/derive.cpp b/src/expand/derive.cpp index 29feca8b..ec65fe88 100644 --- a/src/expand/derive.cpp +++ b/src/expand/derive.cpp @@ -297,8 +297,6 @@ class Deriver_Debug: public: AST::Impl handle_item(Span sp, const ::std::string& core_name, const AST::GenericParams& 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 ::std::string& name = type.path().nodes().back().name(); // Generate code for Debug @@ -503,7 +501,6 @@ public: base_path.nodes().back().args() = ::AST::PathParams(); ::std::vector<AST::ExprNode_Match_Arm> arms; - // TODO: PartialEq for enums for(const auto& v : enm.variants()) { AST::ExprNodeP code; @@ -640,7 +637,6 @@ class Deriver_PartialOrd: { return NEWNODE(Match, NEWNODE(CallPath, this->get_path(core_name, "cmp", "PartialOrd", "partial_cmp"), - // TODO: Ref ::make_vec2( NEWNODE(UniOp, AST::ExprNode_UniOp::REF, mv$(v1)), NEWNODE(UniOp, AST::ExprNode_UniOp::REF, mv$(v2)) diff --git a/src/hir/from_ast.cpp b/src/hir/from_ast.cpp index b8445020..1d2281d6 100644 --- a/src/hir/from_ast.cpp +++ b/src/hir/from_ast.cpp @@ -1207,6 +1207,7 @@ void LowerHIR_Module_Impls(const ::AST::Module& ast_mod, ::HIR::Crate& hir_crat ), (Static, if( e.s_class() == ::AST::Static::CONST ) { + // TODO: Check signature against the trait? constants.insert( ::std::make_pair(item.name, ::HIR::TraitImpl::ImplEnt< ::HIR::Constant> { item.is_specialisable, ::HIR::Constant { ::HIR::GenericParams {}, LowerHIR_Type( e.type() ), |