summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-09-03 16:20:09 +0800
committerJohn Hodge <tpg@mutabah.net>2016-09-03 16:20:09 +0800
commitbc0f5eb833290bcb1eb6c0b71409029119cee9d2 (patch)
treedf92e8484cbd7eaf0f27dc02b807b8b84ac6853c
parentdbf5ab5257fa4535585fb41794b6a86a5c74d637 (diff)
downloadmrust-bc0f5eb833290bcb1eb6c0b71409029119cee9d2.tar.gz
HIR Bind - HACK: Run over extern crates too
-rw-r--r--src/hir_conv/bind.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/hir_conv/bind.cpp b/src/hir_conv/bind.cpp
index e296cead..8d356338 100644
--- a/src/hir_conv/bind.cpp
+++ b/src/hir_conv/bind.cpp
@@ -450,4 +450,9 @@ void ConvertHIR_Bind(::HIR::Crate& crate)
{
Visitor exp { crate };
exp.visit_crate( crate );
+
+ for(auto& ec : crate.m_ext_crates)
+ {
+ exp.visit_crate( *ec.second );
+ }
}