diff options
| author | Gaëtan Gilbert | 2020-02-09 18:29:15 +0100 |
|---|---|---|
| committer | Gaëtan Gilbert | 2020-02-09 18:29:15 +0100 |
| commit | 056c66fef0def03c495b17b54dd3ff5c706337a4 (patch) | |
| tree | 7f62cec5f90c57878beef4114af579484b7f7aae | |
| parent | 1820f40590ec358b40e3a9c444f80c5283e55292 (diff) | |
| parent | 077959dccaa6d2072dab844927ad7f1b7496b5fd (diff) | |
Merge PR #11518: Fix #11515: Ltac2 rewrite on wildcard.
Reviewed-by: SkySkimmer
| -rw-r--r-- | test-suite/bugs/closed/bug_11515.v | 7 | ||||
| -rw-r--r-- | user-contrib/Ltac2/tac2tactics.ml | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/test-suite/bugs/closed/bug_11515.v b/test-suite/bugs/closed/bug_11515.v new file mode 100644 index 0000000000..fe4ba87447 --- /dev/null +++ b/test-suite/bugs/closed/bug_11515.v @@ -0,0 +1,7 @@ +Require Import Ltac2.Ltac2. + +Lemma foo : + True. +Proof. + Fail rewrite _. +Abort. diff --git a/user-contrib/Ltac2/tac2tactics.ml b/user-contrib/Ltac2/tac2tactics.ml index 561bd9c0c5..8a14be9ca7 100644 --- a/user-contrib/Ltac2/tac2tactics.ml +++ b/user-contrib/Ltac2/tac2tactics.ml @@ -33,6 +33,7 @@ let delayed_of_tactic tac env sigma = let _, pv = Proofview.init sigma [] in let name, poly = Id.of_string "ltac2_delayed", false in let c, pv, _, _ = Proofview.apply ~name ~poly env tac pv in + let _, sigma = Proofview.proofview pv in (sigma, c) let delayed_of_thunk r tac env sigma = |
