From 4cdd42e3f037bb07135c06824eec537839f8a953 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Sat, 19 Oct 2019 14:43:36 +0800 Subject: HIR Const Eval - Avoid crash when HIR expansion changes the root node --- src/hir_conv/constant_evaluation.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hir_conv/constant_evaluation.hpp b/src/hir_conv/constant_evaluation.hpp index dff6e73e..a5fd7050 100644 --- a/src/hir_conv/constant_evaluation.hpp +++ b/src/hir_conv/constant_evaluation.hpp @@ -13,7 +13,7 @@ struct Evaluator virtual ::HIR::Path new_static(::HIR::TypeRef type, ::HIR::Literal value) = 0; }; - const Span& root_span; + Span root_span; StaticTraitResolve resolve; Newval& nvs; -- cgit v1.2.3