aboutsummaryrefslogtreecommitdiff
path: root/pretyping
diff options
context:
space:
mode:
authorMaxime Dénès2016-10-03 15:26:17 +0200
committerMaxime Dénès2016-10-03 15:26:17 +0200
commit6cc37a67e4be8e20cd3da46077ab8f3458e22394 (patch)
tree7baf96eaccf037a94d7e525ccaec898955b465bd /pretyping
parent4a2e0798cf24c9edf4e96bd6ad62bdbde7a7cdf7 (diff)
parentd55818c7da468ce1c7c9644cb63f68f7561a17bc (diff)
Merge remote-tracking branch 'github/pr/263' into v8.6
Was PR#263: Fast lookup in named contexts
Diffstat (limited to 'pretyping')
-rw-r--r--pretyping/unification.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/pretyping/unification.ml b/pretyping/unification.ml
index 6573bd238c..e6f4090f40 100644
--- a/pretyping/unification.ml
+++ b/pretyping/unification.ml
@@ -1587,7 +1587,7 @@ let make_abstraction_core name (test,out) env sigma c ty occs check_occs concl =
let x = id_of_name_using_hdchar (Global.env()) t name in
let ids = ids_of_named_context (named_context env) in
if name == Anonymous then next_ident_away_in_goal x ids else
- if mem_named_context x (named_context env) then
+ if mem_named_context_val x (named_context_val env) then
errorlabstrm "Unification.make_abstraction_core"
(str "The variable " ++ Nameops.pr_id x ++ str " is already declared.")
else