summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-08-24 09:35:35 +0800
committerJohn Hodge <tpg@mutabah.net>2016-08-24 09:35:35 +0800
commit781e7852dafeef9e807648db3d3ce9b853490661 (patch)
tree77f810973eb02693cddc852d06813f29bf18d46d /src/include
parent262563ff10b0c2f34649e5177ee8673cc874ae85 (diff)
downloadmrust-781e7852dafeef9e807648db3d3ce9b853490661.tar.gz
HIR Expand - Add a reborrow pass (inserts &mut* on by-value &mut
Diffstat (limited to 'src/include')
-rw-r--r--src/include/span.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/span.hpp b/src/include/span.hpp
index 35d59f42..81ccd179 100644
--- a/src/include/span.hpp
+++ b/src/include/span.hpp
@@ -51,6 +51,8 @@ struct Span
void error(ErrorType tag, ::std::function<void(::std::ostream&)> msg) const;
void warning(WarningType tag, ::std::function<void(::std::ostream&)> msg) const;
void note(::std::function<void(::std::ostream&)> msg) const;
+
+ friend ::std::ostream& operator<<(::std::ostream& os, const Span& sp);
};
template<typename T>