diff options
| author | Pierre-Marie Pédrot | 2021-01-07 18:13:28 +0100 |
|---|---|---|
| committer | Pierre-Marie Pédrot | 2021-01-07 18:13:28 +0100 |
| commit | 7b946aa196490be8790cd5b46d0860b3bf6e33e1 (patch) | |
| tree | 86dd8f3ebcebda8edb2d4ae46793a310e16d062f /plugins | |
| parent | 331592e05f6f222da40489a94abdcdd3ef4b6394 (diff) | |
| parent | 46c28054eb404175e5ba9485c3b5efbfe1b81619 (diff) | |
Merge PR #13696: Deprecate "at ... with ..." in change tactic (use "with ... at ..." instead)
Ack-by: Zimmi48
Reviewed-by: ppedrot
Diffstat (limited to 'plugins')
| -rw-r--r-- | plugins/ltac/g_tactic.mlg | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/plugins/ltac/g_tactic.mlg b/plugins/ltac/g_tactic.mlg index 43957bbde5..cb430efb40 100644 --- a/plugins/ltac/g_tactic.mlg +++ b/plugins/ltac/g_tactic.mlg @@ -182,6 +182,11 @@ let merge_occurrences loc cl = function in (Some p, ans) +let deprecated_conversion_at_with = + CWarnings.create + ~name:"conversion_at_with" ~category:"deprecated" + (fun () -> Pp.str "The syntax [at ... with ...] is deprecated. Use [with ... at ...] instead.") + (* Auxiliary grammar rules *) open Pvernac.Vernac_ @@ -230,7 +235,8 @@ GRAMMAR EXTEND Gram [ [ c = constr -> { (None, c) } | c1 = constr; "with"; c2 = constr -> { (Some (AllOccurrences,c1),c2) } | c1 = constr; "at"; occs = occs_nums; "with"; c2 = constr -> - { (Some (occs,c1), c2) } ] ] + { deprecated_conversion_at_with (); (* 8.14 *) + (Some (occs,c1), c2) } ] ] ; occs_nums: [ [ nl = LIST1 nat_or_var -> { OnlyOccurrences nl } |
