summaryrefslogtreecommitdiff
path: root/src/hir
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-08-17 22:14:25 +0800
committerJohn Hodge <tpg@mutabah.net>2016-08-17 22:14:25 +0800
commit1c8db13e4a9d1d3aabe1333197e4e07301fb8bf4 (patch)
tree2c0f52bc67f43b5f6baab4d5c3bd00f81f1fa484 /src/hir
parent83dbbbf519677dac24a6eac3c2ef2c95894db501 (diff)
downloadmrust-1c8db13e4a9d1d3aabe1333197e4e07301fb8bf4.tar.gz
Parse - Fix many parser bugs
Diffstat (limited to 'src/hir')
-rw-r--r--src/hir/from_ast.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/hir/from_ast.cpp b/src/hir/from_ast.cpp
index 29711937..01917193 100644
--- a/src/hir/from_ast.cpp
+++ b/src/hir/from_ast.cpp
@@ -297,6 +297,13 @@ const ::HIR::SimplePath path_Sized = ::HIR::SimplePath("", {"marker", "Sized"});
e.value
});
),
+ (Float,
+ TODO(sp, "Floating point patterns");
+ //return ::HIR::Pattern::Value::make_Float({
+ // H::get_int_type(sp, e.type),
+ // e.value
+ // });
+ ),
(String,
return ::HIR::Pattern::Value::make_String(e);
),