diff options
author | ppedrot <ppedrot@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2013-10-22 20:11:20 +0000 |
---|---|---|
committer | ppedrot <ppedrot@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2013-10-22 20:11:20 +0000 |
commit | 5f8ce72b29f4a4620ce46895f2e563b2fd85f24b (patch) | |
tree | 2886aafae6f2bca9436d2da714f6e6a9a275a1ba /kernel/environ.ml | |
parent | 818ecca9f72b570ea2a3de47c783927616904b17 (diff) |
Removing some generic equalities.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@16915 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'kernel/environ.ml')
-rw-r--r-- | kernel/environ.ml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/environ.ml b/kernel/environ.ml index 9b18db78e..ae6817a76 100644 --- a/kernel/environ.ml +++ b/kernel/environ.ml @@ -228,7 +228,7 @@ let lookup_constructor_variables (ind,_) env = let vars_of_global env constr = match kind_of_term constr with - Var id -> [id] + Var id -> Id.Set.singleton id | Const kn -> lookup_constant_variables kn env | Ind ind -> lookup_inductive_variables ind env | Construct cstr -> lookup_constructor_variables cstr env @@ -239,7 +239,7 @@ let global_vars_set env constr = let acc = match kind_of_term c with | Var _ | Const _ | Ind _ | Construct _ -> - List.fold_right Id.Set.add (vars_of_global env c) acc + Id.Set.union (vars_of_global env c) acc | _ -> acc in fold_constr filtrec acc c |