summaryrefslogtreecommitdiff
path: root/src/hir_expand/vtable.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-12-18 11:30:08 +0800
committerJohn Hodge <tpg@mutabah.net>2016-12-18 11:31:04 +0800
commitf06d01f899a58e2f5c4207d8def237872f40a47e (patch)
tree7cd6c07e940cfac3afd769eeae44e135f062bc65 /src/hir_expand/vtable.cpp
parent048e53fa011bc09ae24bbb0ee3fcb4f8105959f1 (diff)
downloadmrust-f06d01f899a58e2f5c4207d8def237872f40a47e.tar.gz
HIR - Move VTable construction to codegen
Diffstat (limited to 'src/hir_expand/vtable.cpp')
-rw-r--r--src/hir_expand/vtable.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/hir_expand/vtable.cpp b/src/hir_expand/vtable.cpp
index c36704ed..f12f8de5 100644
--- a/src/hir_expand/vtable.cpp
+++ b/src/hir_expand/vtable.cpp
@@ -232,6 +232,7 @@ namespace {
::HIR::Visitor::visit_trait_impl(trait_path, impl);
+ #if 0
// Check if the trait has a vtable, and if it does emit an associated static for it.
const auto& tr = m_crate.get_trait_by_path(sp, trait_path);
if(tr.m_value_indexes.size() > 0)
@@ -266,6 +267,7 @@ namespace {
::HIR::Literal::make_List( mv$(vals) )
} } ));
}
+ #endif
}
};
}