diff options
Diffstat (limited to 'src/Util/Tactics')
-rw-r--r-- | src/Util/Tactics/DoWithHyp.v | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Util/Tactics/DoWithHyp.v b/src/Util/Tactics/DoWithHyp.v index 3c068fe01..cee21b6d9 100644 --- a/src/Util/Tactics/DoWithHyp.v +++ b/src/Util/Tactics/DoWithHyp.v @@ -1,3 +1,4 @@ +Require Import Crypto.Util.Tactics.Test. Require Import Crypto.Util.Tactics.Not. Require Export Crypto.Util.FixCoqMistakes. @@ -11,7 +12,8 @@ Ltac do_with_hyp' tac := Ltac do_with_exactly_one_hyp tac := match goal with | [ H : _ |- _ ] - => not (idtac; match goal with + => test (tac H); + not (idtac; match goal with | [ H' : _ |- _ ] => tryif constr_eq H H' then fail else tac H' end); tac H |