summaryrefslogtreecommitdiff
path: root/src/hir/serialise.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-08-29 12:49:28 +0800
committerJohn Hodge <tpg@mutabah.net>2016-08-29 12:49:28 +0800
commit8aecde47456213e13280a690a1cace4fd7dceada (patch)
tree015522fae4eb7e5cda827e9e7a48e26b002ffaa1 /src/hir/serialise.cpp
parent6b0311dec3a645c4ff9ef664fa8d836336a2cc66 (diff)
downloadmrust-8aecde47456213e13280a690a1cace4fd7dceada.tar.gz
HIR - Remove dependency on macro_rules.hpp
Diffstat (limited to 'src/hir/serialise.cpp')
-rw-r--r--src/hir/serialise.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/hir/serialise.cpp b/src/hir/serialise.cpp
index 7e1c5176..79e475b6 100644
--- a/src/hir/serialise.cpp
+++ b/src/hir/serialise.cpp
@@ -8,6 +8,7 @@
#include "hir.hpp"
#include "main_bindings.hpp"
#include <serialiser_texttree.hpp>
+#include <macro_rules/macro_rules.hpp>
#include <mir/mir.hpp>
namespace {
@@ -394,6 +395,10 @@ namespace {
write_string(v);
}
+ void serialise(const ::MacroRulesPtr& mac)
+ {
+ serialise(*mac);
+ }
void serialise(const ::MacroRules& mac)
{
//m_exported: IGNORE, should be set