diff options
author | John Hodge <tpg@mutabah.net> | 2018-10-21 09:53:43 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2018-10-21 09:54:05 +0800 |
commit | 9dd5e5364bacf75e8b7f034e61a7f536d0a6344c (patch) | |
tree | d41d6054245e5353fa21bbc8ab3e980a9cc56a24 /src | |
parent | 96d23305473e71bc6fdfca0fca4d6a22983801be (diff) | |
download | mrust-9dd5e5364bacf75e8b7f034e61a7f536d0a6344c.tar.gz |
Windows build fixes
Diffstat (limited to 'src')
-rw-r--r-- | src/hir/expr_ptr.hpp | 2 | ||||
-rw-r--r-- | src/mir/cleanup.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/hir/expr_ptr.hpp b/src/hir/expr_ptr.hpp index b510e737..2f0f30e4 100644 --- a/src/hir/expr_ptr.hpp +++ b/src/hir/expr_ptr.hpp @@ -12,7 +12,7 @@ #include <mir/mir_ptr.hpp> -class Span; +struct Span; namespace HIR { diff --git a/src/mir/cleanup.cpp b/src/mir/cleanup.cpp index 37d256df..eae24031 100644 --- a/src/mir/cleanup.cpp +++ b/src/mir/cleanup.cpp @@ -1218,7 +1218,7 @@ void MIR_Cleanup(const StaticTraitResolve& resolve, const ::HIR::ItemPath& path, void MIR_CleanupCrate(::HIR::Crate& crate) { - ::MIR::OuterVisitor ov { crate, [&](const auto& res, const auto& p, auto& expr_ptr, const auto& args, const auto& ty){ + ::MIR::OuterVisitor ov { crate, [&](const auto& res, const auto& p, ::HIR::ExprPtr& expr_ptr, const auto& args, const auto& ty){ MIR_Cleanup(res, p, expr_ptr.get_mir_or_error_mut(Span()), args, ty); } }; ov.visit_crate(crate); |