aboutsummaryrefslogtreecommitdiff
path: root/proofs
diff options
context:
space:
mode:
Diffstat (limited to 'proofs')
-rw-r--r--proofs/goal.ml10
1 files changed, 2 insertions, 8 deletions
diff --git a/proofs/goal.ml b/proofs/goal.ml
index 53d3047bc7..beeaa60433 100644
--- a/proofs/goal.ml
+++ b/proofs/goal.ml
@@ -58,15 +58,9 @@ module V82 = struct
goals are restored to their initial value after the evar is
created. *)
let prev_future_goals = Evd.save_future_goals evars in
- let evi = { Evd.evar_hyps = hyps;
- Evd.evar_concl = concl;
- Evd.evar_filter = Evd.Filter.identity;
- Evd.evar_abstract_arguments = Evd.Abstraction.identity;
- Evd.evar_body = Evd.Evar_empty;
- Evd.evar_source = (Loc.tag Evar_kinds.GoalEvar);
- Evd.evar_candidates = None }
+ let (evars, evk) =
+ Evarutil.new_pure_evar ~src:(Loc.tag Evar_kinds.GoalEvar) ~typeclass_candidate:false hyps evars concl
in
- let (evars, evk) = Evarutil.new_pure_evar_full evars ~typeclass_candidate:false evi in
let evars = Evd.restore_future_goals evars prev_future_goals in
let ctxt = Environ.named_context_of_val hyps in
let inst = List.map (NamedDecl.get_id %> EConstr.mkVar) ctxt in