diff options
Diffstat (limited to 'src/hir/from_ast.cpp')
-rw-r--r-- | src/hir/from_ast.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/hir/from_ast.cpp b/src/hir/from_ast.cpp index 8ad46596..b9a98f58 100644 --- a/src/hir/from_ast.cpp +++ b/src/hir/from_ast.cpp @@ -945,6 +945,7 @@ namespace { this_trait.m_params.m_types.push_back( ::HIR::TypeRef(arg.m_name, i) ); i ++; } + // HACK: Add a bound of Self: ThisTrait for parts of typeck (TODO: Remove this, it's evil) rv.m_params.m_bounds.push_back( ::HIR::GenericBound::make_TraitBound({ ::HIR::TypeRef("Self",0xFFFF), { mv$(this_trait) } }) ); } |