aboutsummaryrefslogtreecommitdiff
path: root/vernac/comHints.ml
diff options
context:
space:
mode:
authorEmilio Jesus Gallego Arias2020-07-23 14:32:08 +0200
committerEmilio Jesus Gallego Arias2020-07-23 14:32:08 +0200
commit70bc0c73befa3263a92615b0c41b7d5b53297bc5 (patch)
tree1dcfa5fa51fc5924e0ed81b163f295ae51086054 /vernac/comHints.ml
parent667fac4add739479bc263f93f5c67f2c5414a865 (diff)
parentf41fccaaf30ea4f76edb8204fa5f4022467b6e0c (diff)
Merge PR #12678: Tweak the warning for arbitrary term hints.
Ack-by: SkySkimmer Reviewed-by: Zimmi48 Ack-by: ejgallego
Diffstat (limited to 'vernac/comHints.ml')
-rw-r--r--vernac/comHints.ml6
1 files changed, 3 insertions, 3 deletions
diff --git a/vernac/comHints.ml b/vernac/comHints.ml
index b05bf9a675..0e3e3c61a9 100644
--- a/vernac/comHints.ml
+++ b/vernac/comHints.ml
@@ -64,11 +64,11 @@ let project_hint ~poly pri l2r r =
(info, false, true, Hints.PathAny, Hints.IsGlobRef (Names.GlobRef.ConstRef c))
let warn_deprecated_hint_constr =
- CWarnings.create ~name:"deprecated-hint-constr" ~category:"deprecated"
+ CWarnings.create ~name:"fragile-hint-constr" ~category:"automation"
(fun () ->
Pp.strbrk
- "Declaring arbitrary terms as hints is deprecated; declare a global \
- reference instead")
+ "Declaring arbitrary terms as hints is fragile; it is recommended to \
+ declare a toplevel constant instead")
let interp_hints ~poly h =
let env = Global.env () in