summaryrefslogtreecommitdiff
path: root/src/ast/provided_module.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2015-04-02 10:32:59 +0800
committerJohn Hodge <tpg@mutabah.net>2015-04-02 10:33:22 +0800
commit8fb0812c4c43f08a51a74e96c369c4ee56616e9a (patch)
tree6c6226c541187988c48b80686bc52cb4a5bf2648 /src/ast/provided_module.cpp
parent7653f1bf6b1d43d43cfd7f199c8346c2f89f5ab3 (diff)
downloadmrust-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.cpp4
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"))
));
}