diff options
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); |