Skip to content

Commit

Permalink
Deprecate the destauto tactic
Browse files Browse the repository at this point in the history
  • Loading branch information
jfehrle committed Jun 7, 2024
1 parent d116fd0 commit 6bb096f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
5 changes: 5 additions & 0 deletions doc/changelog/04-tactics/19179-deprecate_destauto.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
- **Deprecated:**
:tacn:`destauto`.
See `#11537 <https://github.com/coq/coq/issues/11537#issuecomment-2154260216>`_
(`#99999 <https://github.com/coq/coq/pull/99999>`_,
by Jim Fehrle).
9 changes: 7 additions & 2 deletions plugins/ltac/extratactics.mlg
Original file line number Diff line number Diff line change
Expand Up @@ -482,9 +482,14 @@ TACTIC EXTEND specialize_eqs
| [ "specialize_eqs" hyp(id) ] -> { specialize_eqs id }
END

{
let warn_destauto = CWarnings.create ~name:"destauto-deprecated" ~category:Deprecation.Version.v8_20
(fun () -> strbrk "The \"destauto\" tactic is deprecated.")
}

TACTIC EXTEND destauto
| [ "destauto" ] -> { Internals.destauto }
| [ "destauto" "in" hyp(id) ] -> { Internals.destauto_in id }
| [ "destauto" ] -> { warn_destauto (); Internals.destauto }
| [ "destauto" "in" hyp(id) ] -> { warn_destauto (); Internals.destauto_in id }
END

(**********************************************************************)
Expand Down

0 comments on commit 6bb096f

Please sign in to comment.