aboutsummaryrefslogtreecommitdiff
path: root/tactics
diff options
context:
space:
mode:
authorPierre-Marie Pédrot2018-03-27 13:38:04 +0200
committerPierre-Marie Pédrot2018-03-27 13:38:04 +0200
commit157218226997281ddb674899ffe8b65cada4bcb6 (patch)
treeded112eead8edc38cd8c7e166d8dc1b6060883df /tactics
parent47ad058a918cb0fa8fef70fd7bd95bcb9ca05ee2 (diff)
parent4e44bd8331bf4d15c2e8e817f551a62d62288bcf (diff)
Merge PR #6835: Deprecate undocumented "intros until 0" in favor of "intros *"
Diffstat (limited to 'tactics')
-rw-r--r--tactics/tactics.ml6
1 files changed, 6 insertions, 0 deletions
diff --git a/tactics/tactics.ml b/tactics/tactics.ml
index df3cca1447..834d73bdda 100644
--- a/tactics/tactics.ml
+++ b/tactics/tactics.ml
@@ -1102,7 +1102,13 @@ let msg_quantified_hypothesis = function
pr_nth n ++
str " non dependent hypothesis"
+let warn_deprecated_intros_until_0 =
+ CWarnings.create ~name:"deprecated-intros-until-0" ~category:"tactics"
+ (fun () ->
+ strbrk"\"intros until 0\" is deprecated, use \"intros *\"; instead of \"induction 0\" and \"destruct 0\" use explicitly a name.\"")
+
let depth_of_quantified_hypothesis red h gl =
+ if h = AnonHyp 0 then warn_deprecated_intros_until_0 ();
match lookup_hypothesis_as_renamed_gen red h gl with
| Some depth -> depth
| None ->