aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThéo Zimmermann2020-03-26 20:45:09 +0100
committerThéo Zimmermann2020-03-26 20:45:09 +0100
commit3a34d96a9a8b570ca0c1e186d7c99683b3841e69 (patch)
tree358a0193069d6eae3836701f1cc1ca799533fce3
parent8457ddd63ba4a7afa68409528f165bac0ee18126 (diff)
parent274ed99f9964b802e0a340c39ad69de4cabf37ff (diff)
Merge PR #11877: Removing deprecated destruct/remember syntax _eqn.
Reviewed-by: Zimmi48
-rw-r--r--doc/changelog/04-tactics/11877-master+deprecated-_eqn.rst5
-rw-r--r--doc/sphinx/language/gallina-specification-language.rst2
-rw-r--r--plugins/ltac/g_tactic.mlg8
3 files changed, 6 insertions, 9 deletions
diff --git a/doc/changelog/04-tactics/11877-master+deprecated-_eqn.rst b/doc/changelog/04-tactics/11877-master+deprecated-_eqn.rst
new file mode 100644
index 0000000000..827d484b28
--- /dev/null
+++ b/doc/changelog/04-tactics/11877-master+deprecated-_eqn.rst
@@ -0,0 +1,5 @@
+- **Removed:**
+ Deprecated syntax `_eqn` for :tacn:`destruct` and :tacn:`remember`.
+ Use `eqn:` syntax instead
+ (`#11877 <https://github.com/coq/coq/pull/11877>`_,
+ by Hugo Herbelin).
diff --git a/doc/sphinx/language/gallina-specification-language.rst b/doc/sphinx/language/gallina-specification-language.rst
index fe359a23a9..f4592f8f37 100644
--- a/doc/sphinx/language/gallina-specification-language.rst
+++ b/doc/sphinx/language/gallina-specification-language.rst
@@ -117,7 +117,7 @@ Other tokens
! #[ % & ' ( () (bfs) (dfs) ) * ** + , - ->
. .( .. ... / : ::= := :> :>> ; < <+ <- <:
- <<: <= = => > >-> >= ? @ @{ [ [= ] _ _eqn
+ <<: <= = => > >-> >= ? @ @{ [ [= ] _
`( `{ { {| | |- || }
When multiple tokens match the beginning of a sequence of characters,
diff --git a/plugins/ltac/g_tactic.mlg b/plugins/ltac/g_tactic.mlg
index 5a26ac8827..6a158bde17 100644
--- a/plugins/ltac/g_tactic.mlg
+++ b/plugins/ltac/g_tactic.mlg
@@ -185,10 +185,6 @@ let merge_occurrences loc cl = function
in
(Some p, ans)
-let warn_deprecated_eqn_syntax =
- CWarnings.create ~name:"deprecated-eqn-syntax" ~category:"deprecated"
- (fun arg -> strbrk (Printf.sprintf "Syntax \"_eqn:%s\" is deprecated. Please use \"eqn:%s\" instead." arg arg))
-
(* Auxiliary grammar rules *)
open Pvernac.Vernac_
@@ -461,10 +457,6 @@ GRAMMAR EXTEND Gram
;
eqn_ipat:
[ [ IDENT "eqn"; ":"; pat = naming_intropattern -> { Some (CAst.make ~loc pat) }
- | IDENT "_eqn"; ":"; pat = naming_intropattern ->
- { warn_deprecated_eqn_syntax ~loc "H"; Some (CAst.make ~loc pat) }
- | IDENT "_eqn" ->
- { warn_deprecated_eqn_syntax ~loc "?"; Some (CAst.make ~loc IntroAnonymous) }
| -> { None } ] ]
;
as_name: