aboutsummaryrefslogtreecommitdiff
path: root/tactics/rewrite.ml
diff options
context:
space:
mode:
Diffstat (limited to 'tactics/rewrite.ml')
-rw-r--r--tactics/rewrite.ml3
1 files changed, 2 insertions, 1 deletions
diff --git a/tactics/rewrite.ml b/tactics/rewrite.ml
index 51678e1748..8592cd33d8 100644
--- a/tactics/rewrite.ml
+++ b/tactics/rewrite.ml
@@ -1902,7 +1902,8 @@ let unification_rewrite l2r c1 c2 cl car rel but env =
~flags:{ rewrite_unif_flags with Unification.resolve_evars = true } env
cl.evd ((if l2r then c1 else c2),but)
with
- Pretype_errors.PretypeError _ ->
+ | ex when Pretype_errors.precatchable_exception ex ||
+ Typeclasses_errors.unsatisfiable_exception ex ->
(* ~flags:(true,true) to make Ring work (since it really
exploits conversion) *)
Unification.w_unify_to_subterm