diff options
| author | John Hodge <tpg@mutabah.net> | 2016-06-11 11:10:01 +0800 |
|---|---|---|
| committer | John Hodge <tpg@mutabah.net> | 2016-06-11 11:10:01 +0800 |
| commit | a09442783f4e0bae92d90803b333e420d2636d36 (patch) | |
| tree | 951574f18f0fbcc8f906eb8b96e1b278d8669d2d /src/hir_conv/bind.cpp | |
| parent | f7f3d24fcf16f34f31d35b7e571725dff5e4c42a (diff) | |
| download | mrust-a09442783f4e0bae92d90803b333e420d2636d36.tar.gz | |
HIR - Trait objects only have on data trait, fix propagation of marker flag
Diffstat (limited to 'src/hir_conv/bind.cpp')
| -rw-r--r-- | src/hir_conv/bind.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/hir_conv/bind.cpp b/src/hir_conv/bind.cpp index 6608f230..6581911c 100644 --- a/src/hir_conv/bind.cpp +++ b/src/hir_conv/bind.cpp @@ -214,9 +214,7 @@ namespace { e.binding = ::HIR::TypeRef::TypePathBinding::make_Enum(&e3); ), (Trait, - ::std::vector< ::HIR::GenericPath> traits; - traits.push_back( mv$(e2) ); - ty.m_data = ::HIR::TypeRef::Data::make_TraitObject({ mv$(traits), {} }); + ty.m_data = ::HIR::TypeRef::Data::make_TraitObject({ mv$(e2), {}, {} }); ) ) ) |
