summaryrefslogtreecommitdiff
path: root/src/hir/generic_params.hpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-05-29 12:12:49 +0800
committerJohn Hodge <tpg@mutabah.net>2016-05-29 12:12:49 +0800
commitf6b5e16db50450be409330e6dddfb218c8b5afb7 (patch)
treea177f95bd8562ad3cdd28baf223c50368a6b05f1 /src/hir/generic_params.hpp
parenta8d2de3db9d9f92013d0ac6e52319b55590efea4 (diff)
downloadmrust-f6b5e16db50450be409330e6dddfb218c8b5afb7.tar.gz
HIR Typecheck - Fiddling
Diffstat (limited to 'src/hir/generic_params.hpp')
-rw-r--r--src/hir/generic_params.hpp47
1 files changed, 22 insertions, 25 deletions
diff --git a/src/hir/generic_params.hpp b/src/hir/generic_params.hpp
index 28c9d067..1fe92163 100644
--- a/src/hir/generic_params.hpp
+++ b/src/hir/generic_params.hpp
@@ -8,34 +8,31 @@ struct TypeParamDef
{
::std::string m_name;
::HIR::TypeRef m_default;
+ bool m_is_sized;
};
TAGGED_UNION(GenericBound, Lifetime,
-(Lifetime, struct {
- ::std::string test;
- ::std::string valid_for;
- }),
-(TypeLifetime, struct {
- ::HIR::TypeRef type;
- ::std::string valid_for;
- }),
-(TraitBound, struct {
- ::HIR::TypeRef type;
- ::HIR::TraitPath trait;
- }),
-(TraitUnbound, struct {
- ::HIR::TypeRef type;
- ::HIR::GenericPath trait;
- }),
-//(NotTrait, struct {
-// ::HIR::TypeRef type;
-// ::HIR::GenricPath trait;
-// }),
-(TypeEquality, struct {
- ::HIR::TypeRef type;
- ::HIR::TypeRef other_type;
- })
-);
+ (Lifetime, struct {
+ ::std::string test;
+ ::std::string valid_for;
+ }),
+ (TypeLifetime, struct {
+ ::HIR::TypeRef type;
+ ::std::string valid_for;
+ }),
+ (TraitBound, struct {
+ ::HIR::TypeRef type;
+ ::HIR::TraitPath trait;
+ }),
+ //(NotTrait, struct {
+ // ::HIR::TypeRef type;
+ // ::HIR::GenricPath trait;
+ // }),
+ (TypeEquality, struct {
+ ::HIR::TypeRef type;
+ ::HIR::TypeRef other_type;
+ })
+ );
struct GenericParams
{