summaryrefslogtreecommitdiff
path: root/src/convert/resolve.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-05-01 14:22:52 +0800
committerJohn Hodge <tpg@mutabah.net>2016-05-01 14:22:52 +0800
commit258f1d3894a8261e2bf3d6528093c152ad53c4b0 (patch)
tree1737be382ecfed4e782d27897055633789d4939a /src/convert/resolve.cpp
parentb613f53aecc651ca36b550345175554d2d2def8d (diff)
downloadmrust-258f1d3894a8261e2bf3d6528093c152ad53c4b0.tar.gz
AST - Remove Expr from patterns (replace with local Value type)
Diffstat (limited to 'src/convert/resolve.cpp')
-rw-r--r--src/convert/resolve.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/convert/resolve.cpp b/src/convert/resolve.cpp
index ebfe2998..a240c6fc 100644
--- a/src/convert/resolve.cpp
+++ b/src/convert/resolve.cpp
@@ -1652,7 +1652,7 @@ void CPathResolver::handle_pattern(AST::Pattern& pat, const TypeRef& type_hint)
// It's a constant (enum variant usually)
pat = AST::Pattern(
AST::Pattern::TagValue(),
- ::std::unique_ptr<AST::ExprNode>( new AST::ExprNode_NamedValue( ::std::move(newpath) ) )
+ AST::Pattern::Value::make_Named( mv$(newpath) )
);
}
}