summaryrefslogtreecommitdiff
path: root/src/ast/provided_module.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-01-30 15:58:42 +0800
committerJohn Hodge <tpg@mutabah.net>2016-01-30 15:58:42 +0800
commit5481c481d9120732f447fc108a1cf86659fda579 (patch)
treecd7440e1d84efc1dd8398f5f305abfb0955b4045 /src/ast/provided_module.cpp
parente3cf598517bf45317df0891462d71fa0b20dd1b9 (diff)
downloadmrust-5481c481d9120732f447fc108a1cf86659fda579.tar.gz
Rename TypeParams to GenericParams
Diffstat (limited to 'src/ast/provided_module.cpp')
-rw-r--r--src/ast/provided_module.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ast/provided_module.cpp b/src/ast/provided_module.cpp
index fc006020..8d32fb96 100644
--- a/src/ast/provided_module.cpp
+++ b/src/ast/provided_module.cpp
@@ -12,7 +12,7 @@ void AST_InitProvidedModule()
{
// "struct str([u8])"
g_compiler_module.add_struct(true, "str",
- AST::Struct( AST::MetaItems(), AST::TypeParams(), ::std::vector<AST::StructItem> {
+ AST::Struct( AST::MetaItems(), AST::GenericParams(), ::std::vector<AST::StructItem> {
AST::StructItem("", TypeRef(TypeRef::TagUnsizedArray(), TypeRef(CORETYPE_U8)), false),
}));
@@ -31,7 +31,7 @@ void AST_InitProvidedModule_Impls()
}
#define impl(trait, type) \
- g_compiler_module.add_impl(AST::Impl(AST::MetaItems(), AST::TypeParams(), type, trait))
+ g_compiler_module.add_impl(AST::Impl(AST::MetaItems(), AST::GenericParams(), type, trait))
impl(g_copy_marker_path, TypeRef(CORETYPE_U8));
impl(g_copy_marker_path, TypeRef(CORETYPE_U16));
impl(g_copy_marker_path, TypeRef(CORETYPE_U32));
@@ -49,7 +49,7 @@ void AST_InitProvidedModule_Impls()
impl(g_sized_marker_path, TypeRef());
{
- AST::TypeParams tps;
+ AST::GenericParams tps;
tps.add_ty_param( AST::TypeParam("T") );
g_compiler_module.add_neg_impl(AST::ImplDef(
AST::MetaItems(), ::std::move(tps),