summaryrefslogtreecommitdiff
path: root/src/mir/from_hir.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-10-20 10:35:00 +0800
committerJohn Hodge <tpg@mutabah.net>2016-10-20 10:35:00 +0800
commit4112fb128346045b06efd64ff9e1020e49af24c0 (patch)
tree4490c6a1a256644120c61cf4b198fce972700114 /src/mir/from_hir.cpp
parenteb7b67e0f98180b1578e3d34ff00203b0131c98f (diff)
downloadmrust-4112fb128346045b06efd64ff9e1020e49af24c0.tar.gz
MIR Gen - Associated constants
Diffstat (limited to 'src/mir/from_hir.cpp')
-rw-r--r--src/mir/from_hir.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mir/from_hir.cpp b/src/mir/from_hir.cpp
index 5111320c..00b2f507 100644
--- a/src/mir/from_hir.cpp
+++ b/src/mir/from_hir.cpp
@@ -1533,7 +1533,7 @@ namespace {
ASSERT_BUG(sp, it != tr.m_values.end(), "Cannot find trait item for " << node.m_path);
TU_MATCHA( (it->second), (e),
(Constant,
- TODO(sp, "Associated constants - " << node.m_path);
+ m_builder.set_result( sp, ::MIR::Constant::make_ItemAddr(node.m_path.clone()) );
),
(Static,
TODO(sp, "Associated statics (non-rustc) - " << node.m_path);