diff options
author | John Hodge <tpg@mutabah.net> | 2015-04-02 10:32:59 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2015-04-02 10:33:22 +0800 |
commit | 8fb0812c4c43f08a51a74e96c369c4ee56616e9a (patch) | |
tree | 6c6226c541187988c48b80686bc52cb4a5bf2648 /src/ast/provided_module.cpp | |
parent | 7653f1bf6b1d43d43cfd7f199c8346c2f89f5ab3 (diff) | |
download | mrust-8fb0812c4c43f08a51a74e96c369c4ee56616e9a.tar.gz |
Hacked up handling of Sized (handled VERY similar to other .. traits)
Diffstat (limited to 'src/ast/provided_module.cpp')
-rw-r--r-- | src/ast/provided_module.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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")) )); } |