summaryrefslogtreecommitdiff
path: root/src/hir/type.hpp
diff options
context:
space:
mode:
authorJohn Hodge (bugs) <tpg@mutabah.net>2017-06-04 21:23:03 +0800
committerJohn Hodge (bugs) <tpg@mutabah.net>2017-06-04 21:23:03 +0800
commit0b9fd0014c8f32ecf299dae2ad1811dfb484af46 (patch)
tree609eff961f07d7562a2b5a1ffb4a43905f5e98fb /src/hir/type.hpp
parent7a267995c7cfd6b68849079dc4ecae4ebe74e6fa (diff)
downloadmrust-0b9fd0014c8f32ecf299dae2ad1811dfb484af46.tar.gz
All - Compile and run fixes in MSVC
Diffstat (limited to 'src/hir/type.hpp')
-rw-r--r--src/hir/type.hpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/hir/type.hpp b/src/hir/type.hpp
index b5b10c4e..a832e8e9 100644
--- a/src/hir/type.hpp
+++ b/src/hir/type.hpp
@@ -123,7 +123,7 @@ public:
)
);
- TAGGED_UNION(Data, Infer,
+ TAGGED_UNION(Data, Diverge,
(Infer, struct {
unsigned int index;
InferClass ty_class;
@@ -177,7 +177,9 @@ public:
Data m_data;
- TypeRef() {}
+ TypeRef():
+ m_data(Data::make_Infer({ ~0u, InferClass::None }))
+ {}
TypeRef(TypeRef&& ) = default;
TypeRef(const TypeRef& ) = delete;
TypeRef& operator=(TypeRef&& ) = default;