aboutsummaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorppedrot2013-08-25 22:33:56 +0000
committerppedrot2013-08-25 22:33:56 +0000
commit646c6765e5e3307f8898c4f63c405d91c2e6f47b (patch)
tree1055377213a63b0bbbba1ca55fddf96b22f3c218 /kernel
parent89b1cff6e2e4f8095f3407c19d6692f2c0477e12 (diff)
Replacing lists by sets in clear tactic.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@16734 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'kernel')
-rw-r--r--kernel/environ.ml2
-rw-r--r--kernel/environ.mli2
2 files changed, 2 insertions, 2 deletions
diff --git a/kernel/environ.ml b/kernel/environ.ml
index 8a4871a1dc..9b18db78e8 100644
--- a/kernel/environ.ml
+++ b/kernel/environ.ml
@@ -362,7 +362,7 @@ let insert_after_hyp (ctxt,vals) id d check =
(* To be used in Logic.clear_hyps *)
let remove_hyps ids check_context check_value (ctxt, vals) =
List.fold_right2 (fun (id,_,_ as d) (id',v) (ctxt,vals) ->
- if List.mem id ids then
+ if Id.Set.mem id ids then
(ctxt,vals)
else
let nd = check_context d in
diff --git a/kernel/environ.mli b/kernel/environ.mli
index 0dcc291b52..54e88f6464 100644
--- a/kernel/environ.mli
+++ b/kernel/environ.mli
@@ -212,7 +212,7 @@ val insert_after_hyp : named_context_val -> variable ->
named_declaration ->
(named_context -> unit) -> named_context_val
-val remove_hyps : Id.t list -> (named_declaration -> named_declaration) -> (Pre_env.lazy_val -> Pre_env.lazy_val) -> named_context_val -> named_context_val
+val remove_hyps : Id.Set.t -> (named_declaration -> named_declaration) -> (Pre_env.lazy_val -> Pre_env.lazy_val) -> named_context_val -> named_context_val