aboutsummaryrefslogtreecommitdiff
path: root/tactics
diff options
context:
space:
mode:
authorMaxime Dénès2019-04-05 01:44:59 +0200
committerMaxime Dénès2019-04-10 15:41:44 +0200
commitac5d50d405ad878b6899d483e64576de63d2d095 (patch)
tree6e933be829ba881d698d4cf5adda896fc6a4e680 /tactics
parentdd672f839765c656a910ff8e07603858dbc8bc38 (diff)
Functionalize env in type classes
I had to reorganize the code a bit. The Context command moved to comAssumption, as it is not so related to type classes. We were able to remove a few hooks on the way.
Diffstat (limited to 'tactics')
-rw-r--r--tactics/class_tactics.ml4
1 files changed, 2 insertions, 2 deletions
diff --git a/tactics/class_tactics.ml b/tactics/class_tactics.ml
index a28f4597cf..c1ac7d201a 100644
--- a/tactics/class_tactics.ml
+++ b/tactics/class_tactics.ml
@@ -362,7 +362,7 @@ and e_my_find_search db_list local_db secvars hdc complete only_classes env sigm
try
match hdc with
| Some (hd,_) when only_classes ->
- let cl = Typeclasses.class_info hd in
+ let cl = Typeclasses.class_info env sigma hd in
if cl.cl_strict then
Evarutil.undefined_evars_of_term sigma concl
else Evar.Set.empty
@@ -1052,7 +1052,7 @@ let error_unresolvable env comp evd =
| Some s -> Evar.Set.mem ev s
in
let fold ev evi (found, accu) =
- let ev_class = class_of_constr evd evi.evar_concl in
+ let ev_class = class_of_constr env evd evi.evar_concl in
if not (Option.is_empty ev_class) && is_part ev then
(* focus on one instance if only one was searched for *)
if not found then (true, Some ev)