summaryrefslogtreecommitdiff
path: root/src/hir/from_ast.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-08-12 23:40:36 +0800
committerJohn Hodge <tpg@mutabah.net>2016-08-12 23:40:36 +0800
commit53ebabd01b6cc8aca39c48cb616c17fa23a0782d (patch)
tree5e2c03f349344c32ac314b6a73cf1c52247f6d70 /src/hir/from_ast.cpp
parentb337562448d2dccd2a634b8dba50aeab76376f4b (diff)
downloadmrust-53ebabd01b6cc8aca39c48cb616c17fa23a0782d.tar.gz
HIR Patterns - Support binding Value::Named to targets
Diffstat (limited to 'src/hir/from_ast.cpp')
-rw-r--r--src/hir/from_ast.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hir/from_ast.cpp b/src/hir/from_ast.cpp
index ebf2e2a6..3f492633 100644
--- a/src/hir/from_ast.cpp
+++ b/src/hir/from_ast.cpp
@@ -301,7 +301,7 @@ const ::HIR::SimplePath path_Sized = ::HIR::SimplePath("", {"marker", "Sized"});
return ::HIR::Pattern::Value::make_String(e);
),
(Named,
- return ::HIR::Pattern::Value::make_Named( LowerHIR_Path(sp, e) );
+ return ::HIR::Pattern::Value::make_Named( {LowerHIR_Path(sp, e), nullptr} );
)
)
throw "BUGCHECK: Reached end of LowerHIR_Pattern::H::lowerhir_pattern_value";