aboutsummaryrefslogtreecommitdiffhomepage
path: root/proofs/goal.ml
diff options
context:
space:
mode:
Diffstat (limited to 'proofs/goal.ml')
-rw-r--r--proofs/goal.ml6
1 files changed, 4 insertions, 2 deletions
diff --git a/proofs/goal.ml b/proofs/goal.ml
index 48cce3fa7..7901ec0a5 100644
--- a/proofs/goal.ml
+++ b/proofs/goal.ml
@@ -429,8 +429,10 @@ let rename_hyp_sign id1 id2 sign =
let rename_hyp id1 id2 env rdefs gl info =
let hyps = hyps env rdefs gl info in
if not (Names.Id.equal id1 id2) &&
- List.mem id2 (Termops.ids_of_named_context (Environ.named_context_of_val hyps)) then
- Errors.error ((Names.Id.to_string id2)^" is already used.");
+ Names.Id.List.mem id2
+ (Termops.ids_of_named_context (Environ.named_context_of_val hyps))
+ then
+ Errors.error ((Names.Id.to_string id2)^" is already used.");
let new_hyps = rename_hyp_sign id1 id2 hyps in
let new_env = Environ.reset_with_named_context new_hyps env in
let old_concl = concl env rdefs gl info in