From 8fb0812c4c43f08a51a74e96c369c4ee56616e9a Mon Sep 17 00:00:00 2001 From: John Hodge Date: Thu, 2 Apr 2015 10:32:59 +0800 Subject: Hacked up handling of Sized (handled VERY similar to other .. traits) --- src/ast/provided_module.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ast/provided_module.cpp') diff --git a/src/ast/provided_module.cpp b/src/ast/provided_module.cpp index d82f9716..a72869a6 100644 --- a/src/ast/provided_module.cpp +++ b/src/ast/provided_module.cpp @@ -29,12 +29,12 @@ void AST_InitProvidedModule() // A hacky default impl of 'Sized', with a negative impl on [T] AST::Path sized_marker_path({AST::PathNode("marker"),AST::PathNode("Sized")}); - g_compiler_module.add_impl(AST::Impl(AST::TypeParams(), TypeRef(), copy_marker_path)); + g_compiler_module.add_impl(AST::Impl(AST::TypeParams(), TypeRef(), sized_marker_path)); AST::TypeParams tps; tps.add_ty_param( AST::TypeParam("T") ); g_compiler_module.add_neg_impl(AST::ImplDef( ::std::move(tps), - copy_marker_path, + sized_marker_path, TypeRef(TypeRef::TagUnsizedArray(), TypeRef(TypeRef::TagArg(), "T")) )); } -- cgit v1.2.3