diff options
author | John Hodge <tpg@ucc.asn.au> | 2019-10-19 14:43:36 +0800 |
---|---|---|
committer | John Hodge <tpg@ucc.asn.au> | 2019-10-19 14:43:36 +0800 |
commit | 4cdd42e3f037bb07135c06824eec537839f8a953 (patch) | |
tree | 7fe1862d188852c7407c9da85dc9f33c0e3d2ba7 | |
parent | a5ef0c568300193393efd4b4625d867873188200 (diff) | |
download | mrust-4cdd42e3f037bb07135c06824eec537839f8a953.tar.gz |
HIR Const Eval - Avoid crash when HIR expansion changes the root node
-rw-r--r-- | src/hir_conv/constant_evaluation.hpp | 2 |
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; |