aboutsummaryrefslogtreecommitdiffhomepage
path: root/pretyping/coercion.ml
diff options
context:
space:
mode:
authorGravatar letouzey <letouzey@85f007b7-540e-0410-9357-904b9bb8a0f7>2013-03-13 00:00:45 +0000
committerGravatar letouzey <letouzey@85f007b7-540e-0410-9357-904b9bb8a0f7>2013-03-13 00:00:45 +0000
commita5aaef33d5cab01177105299a2414c9544860cca (patch)
tree4ab65c5a892668f6cfa69b266b8ebf6ba50ca7a2 /pretyping/coercion.ml
parent1b2e9b8aa5b5b0941ac331c1a95b406c053ffbdf (diff)
Restrict (try...with...) to avoid catching critical exn (part 12)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@16289 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'pretyping/coercion.ml')
-rw-r--r--pretyping/coercion.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/pretyping/coercion.ml b/pretyping/coercion.ml
index aa172fc2a..9c61d3f06 100644
--- a/pretyping/coercion.ml
+++ b/pretyping/coercion.ml
@@ -335,7 +335,7 @@ let apply_coercion env sigma p hj typ_cl =
jres),
jres.uj_type)
(hj,typ_cl) p)
- with _ -> anomaly (Pp.str "apply_coercion")
+ with e when Errors.noncritical e -> anomaly (Pp.str "apply_coercion")
let inh_app_fun env evd j =
let t = whd_betadeltaiota env evd j.uj_type in