diff options
author | John Hodge <tpg@ucc.asn.au> | 2019-02-03 13:42:13 +0800 |
---|---|---|
committer | John Hodge <tpg@ucc.asn.au> | 2019-02-03 13:42:13 +0800 |
commit | 4960edb7d948e43efc58a28ecd05fa9237c8d240 (patch) | |
tree | 3d193eb4b55c680f64fe332f6040bf2122f128ed /src/hir/expr.cpp | |
parent | aab9f94620c7d78377ffbd3fdbcb845657c86503 (diff) | |
download | mrust-4960edb7d948e43efc58a28ecd05fa9237c8d240.tar.gz |
HIR Expr - Have _StructLiteral take a HIR::Path (to allow associated types to be used)
Diffstat (limited to 'src/hir/expr.cpp')
-rw-r--r-- | src/hir/expr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hir/expr.cpp b/src/hir/expr.cpp index 6b7c2e1a..589e2811 100644 --- a/src/hir/expr.cpp +++ b/src/hir/expr.cpp @@ -158,7 +158,7 @@ DEF_VISIT(ExprNode_PathValue, node, ) DEF_VISIT(ExprNode_Variable, , ) DEF_VISIT(ExprNode_StructLiteral, node, - visit_generic_path(::HIR::Visitor::PathContext::VALUE, node.m_path); + visit_path(::HIR::Visitor::PathContext::VALUE, node.m_path); if( node.m_base_value ) visit_node_ptr(node.m_base_value); for(auto& val : node.m_values) |