aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tactics/dhyp.ml4
1 files changed, 3 insertions, 1 deletions
diff --git a/tactics/dhyp.ml b/tactics/dhyp.ml
index 720cb6f5f1..d73677617b 100644
--- a/tactics/dhyp.ml
+++ b/tactics/dhyp.ml
@@ -244,7 +244,9 @@ let forward_tac_interp =
let set_extern_interp f = forward_tac_interp := f
let applyDestructor cls discard dd gls =
- let mvb = match_dpat dd.d_pat cls gls in
+ let mvb =
+ try match_dpat dd.d_pat cls gls
+ with PatternMatchingFailure -> error "No match" in
let tac = match cls with
| Some id ->
let arg = Reference (RIdent (dummy_loc,id)) in