summaryrefslogtreecommitdiff
path: root/src/ast/pattern.hpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2018-06-02 17:43:28 +0800
committerJohn Hodge <tpg@mutabah.net>2018-06-02 17:43:28 +0800
commit44ea3bbb2313f718b220ec24b525bd28248a3d94 (patch)
tree421865d3c1148810a5cc858c5ba31b008ae9ec03 /src/ast/pattern.hpp
parent02683781cb8b815ce0240fd2afc333c57a0460ba (diff)
downloadmrust-44ea3bbb2313f718b220ec24b525bd28248a3d94.tar.gz
AST - Remove old serialisation code (now all done on HIR)
Diffstat (limited to 'src/ast/pattern.hpp')
-rw-r--r--src/ast/pattern.hpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/ast/pattern.hpp b/src/ast/pattern.hpp
index a5e97c40..40cfa927 100644
--- a/src/ast/pattern.hpp
+++ b/src/ast/pattern.hpp
@@ -55,8 +55,7 @@ public:
bool is_valid() const { return m_name.name != ""; }
};
-class Pattern:
- public Serialisable
+class Pattern
{
public:
TAGGED_UNION(Value, Invalid,
@@ -196,13 +195,6 @@ public:
const Path& path() const { return m_data.as_StructTuple().path; }
friend ::std::ostream& operator<<(::std::ostream& os, const Pattern& pat);
-
- SERIALISABLE_PROTOTYPES();
- static ::std::unique_ptr<Pattern> from_deserialiser(Deserialiser& s) {
- ::std::unique_ptr<Pattern> ret(new Pattern);
- s.item(*ret);
- return ret;
- }
};
extern ::std::ostream& operator<<(::std::ostream& os, const Pattern::Value& val);