diff options
| author | Pierre-Marie Pédrot | 2020-02-04 09:46:02 +0100 |
|---|---|---|
| committer | Pierre-Marie Pédrot | 2020-02-04 10:46:19 +0100 |
| commit | 077959dccaa6d2072dab844927ad7f1b7496b5fd (patch) | |
| tree | be110a10e5c809054c52df5050cb0e8e186fe350 | |
| parent | 1c1c04d0e3e02ce461fb953f08e2d8c68e52ee63 (diff) | |
Fix #11515: Ltac2 rewrite on wildcard.
There was an evar leak due to an evarmap not being threaded correctly
when computing open terms.
| -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 = |
