summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Hodge <tpg@ucc.asn.au>2019-10-19 14:43:36 +0800
committerJohn Hodge <tpg@ucc.asn.au>2019-10-19 14:43:36 +0800
commit4cdd42e3f037bb07135c06824eec537839f8a953 (patch)
tree7fe1862d188852c7407c9da85dc9f33c0e3d2ba7
parenta5ef0c568300193393efd4b4625d867873188200 (diff)
downloadmrust-4cdd42e3f037bb07135c06824eec537839f8a953.tar.gz
HIR Const Eval - Avoid crash when HIR expansion changes the root node
-rw-r--r--src/hir_conv/constant_evaluation.hpp2
1 files changed, 1 insertions, 1 deletions
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;