summaryrefslogtreecommitdiff
path: root/src/ast
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2015-08-25 17:47:34 +0800
committerJohn Hodge <tpg@mutabah.net>2015-08-25 17:47:34 +0800
commitaaa9780a3b5a1c78b6f5e0eb1c46405ee044b750 (patch)
tree60a2dd51b06e66cbc584e6e8a7f56ace52d08a59 /src/ast
parentb372cfc36b5be1f73d3d79c399530cffd4ce444a (diff)
downloadmrust-aaa9780a3b5a1c78b6f5e0eb1c46405ee044b750.tar.gz
Rename tagged_enum to tagged_union
Diffstat (limited to 'src/ast')
-rw-r--r--src/ast/path.hpp2
-rw-r--r--src/ast/pattern.hpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/ast/path.hpp b/src/ast/path.hpp
index ff267c73..7cc4a181 100644
--- a/src/ast/path.hpp
+++ b/src/ast/path.hpp
@@ -10,7 +10,7 @@
#include <initializer_list>
#include <cassert>
#include <serialise.hpp>
-#include <tagged_enum.hpp>
+#include <tagged_union.hpp>
class TypeRef;
diff --git a/src/ast/pattern.hpp b/src/ast/pattern.hpp
index 299a26a6..6b89aa35 100644
--- a/src/ast/pattern.hpp
+++ b/src/ast/pattern.hpp
@@ -5,7 +5,7 @@
#include <vector>
#include <memory>
#include <string>
-#include <tagged_enum.hpp>
+#include <tagged_union.hpp>
namespace AST {
@@ -18,7 +18,7 @@ class Pattern:
public Serialisable
{
public:
- TAGGED_ENUM(Data, Any,
+ TAGGED_UNION(Data, Any,
(Any, () ),
(MaybeBind, () ),
(Ref, (bool mut; unique_ptr<Pattern> sub;) ),