From 4112fb128346045b06efd64ff9e1020e49af24c0 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Thu, 20 Oct 2016 10:35:00 +0800 Subject: MIR Gen - Associated constants --- src/mir/from_hir.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3