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_conv/bind.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_conv/bind.cpp')
-rw-r--r-- | src/hir_conv/bind.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hir_conv/bind.cpp b/src/hir_conv/bind.cpp index c979b2e6..9b5043f4 100644 --- a/src/hir_conv/bind.cpp +++ b/src/hir_conv/bind.cpp @@ -645,7 +645,7 @@ namespace { void visit(::HIR::ExprNode_StructLiteral& node) override { - upper_visitor.visit_generic_path(node.m_path, ::HIR::Visitor::PathContext::TYPE); + upper_visitor.visit_path(node.m_path, ::HIR::Visitor::PathContext::TYPE); ::HIR::ExprVisitorDef::visit(node); } void visit(::HIR::ExprNode_ArraySized& node) override |