aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/changelog/02-specification-language/10858-stuck-classed.md12
-rw-r--r--doc/changelog/03-notations/12523-term-notation-custom.rst4
-rw-r--r--doc/changelog/03-notations/12683-master+fix12682-notation-printing-nary-application-ref.rst5
-rw-r--r--doc/changelog/04-tactics/12572-fix-12571.rst6
-rw-r--r--doc/changelog/05-tactic-language/12541-fix12228.rst6
-rw-r--r--doc/changelog/05-tactic-language/12594-fix-ltac2-type-params.rst5
-rw-r--r--doc/changelog/06-ssreflect/12708-fix-12707-ssr-ast-closure-size.rst5
-rw-r--r--doc/changelog/07-commands-and-options/12677-require-v811-error-compat.rst5
-rw-r--r--doc/changelog/09-coqide/12562-coqide-lax-filename.rst4
-rw-r--r--doc/changelog/11-infrastructure-and-dependencies/12583-fix-remake.rst5
-rw-r--r--doc/sphinx/changes.rst90
-rw-r--r--test-suite/Makefile2
-rw-r--r--test-suite/coqdoc/bug12742.html.out67
-rw-r--r--test-suite/coqdoc/bug12742.tex.out51
-rw-r--r--test-suite/coqdoc/bug12742.v20
-rw-r--r--tools/coqdoc/cpretty.mll2
-rw-r--r--vernac/.ocamlformat-enable1
-rw-r--r--vernac/comHints.ml6
18 files changed, 232 insertions, 64 deletions
diff --git a/doc/changelog/02-specification-language/10858-stuck-classed.md b/doc/changelog/02-specification-language/10858-stuck-classed.md
deleted file mode 100644
index c7186f2c1d..0000000000
--- a/doc/changelog/02-specification-language/10858-stuck-classed.md
+++ /dev/null
@@ -1,12 +0,0 @@
-- **Changed:**
- Typeclass resolution, accessible through :tacn:`typeclasses eauto`,
- now suspends constraints according to their modes
- instead of failing. If a typeclass constraint does not match
- any of the declared modes for its class, the constraint is postponed, and
- the proof search continues on other goals. Proof search does a fixed point
- computation to try to solve them at a later stage of resolution. It does
- not fail if there remain only stuck constraints at the end of resolution.
- This makes typeclasses with declared modes more robust with respect to the
- order of resolution.
- (`#10858 <https://github.com/coq/coq/pull/10858>`_,
- fixes `#9058 <https://github.com/coq/coq/issues/9058>_`, by Matthieu Sozeau).
diff --git a/doc/changelog/03-notations/12523-term-notation-custom.rst b/doc/changelog/03-notations/12523-term-notation-custom.rst
deleted file mode 100644
index 1a611f3fb1..0000000000
--- a/doc/changelog/03-notations/12523-term-notation-custom.rst
+++ /dev/null
@@ -1,4 +0,0 @@
-- **Added:**
- Simultaneous definition of terms and notations now support custom entries.
- Fixes `#11121 <https://github.com/coq/coq/pull/11121>`_.
- (`#12523 <https://github.com/coq/coq/pull/11523>`_, by Maxime Dénès).
diff --git a/doc/changelog/03-notations/12683-master+fix12682-notation-printing-nary-application-ref.rst b/doc/changelog/03-notations/12683-master+fix12682-notation-printing-nary-application-ref.rst
deleted file mode 100644
index ab8768a079..0000000000
--- a/doc/changelog/03-notations/12683-master+fix12682-notation-printing-nary-application-ref.rst
+++ /dev/null
@@ -1,5 +0,0 @@
-- **Fixed:**
- Printing bug with notations for n-ary applications used with applied references.
- (`#12683 <https://github.com/coq/coq/pull/12683>`_,
- fixes `#12682 <https://github.com/coq/coq/pull/12682>`_,
- by Hugo Herbelin).
diff --git a/doc/changelog/04-tactics/12572-fix-12571.rst b/doc/changelog/04-tactics/12572-fix-12571.rst
deleted file mode 100644
index 98b217e86b..0000000000
--- a/doc/changelog/04-tactics/12572-fix-12571.rst
+++ /dev/null
@@ -1,6 +0,0 @@
-- **Fixed:**
- typeclasses eauto (and discriminated hint bases) now correctly
- classify local variables as being unfoldable
- (`#12572 <https://github.com/coq/coq/pull/12572>`_,
- fixes `#12571 <https://github.com/coq/coq/issues/12571>`_,
- by Pierre-Marie Pédrot).
diff --git a/doc/changelog/05-tactic-language/12541-fix12228.rst b/doc/changelog/05-tactic-language/12541-fix12228.rst
deleted file mode 100644
index 286760e008..0000000000
--- a/doc/changelog/05-tactic-language/12541-fix12228.rst
+++ /dev/null
@@ -1,6 +0,0 @@
-- **Fixed:**
- Excluding occurrences was causing an anomaly in tactics
- (e.g., :g:`pattern _ at L` where :g:`L` is :g:`-2`).
- (`#12541 <https://github.com/coq/coq/pull/12541>`_,
- fixes `#12228 <https://github.com/coq/coq/issues/12228>`_,
- by Pierre Roux).
diff --git a/doc/changelog/05-tactic-language/12594-fix-ltac2-type-params.rst b/doc/changelog/05-tactic-language/12594-fix-ltac2-type-params.rst
deleted file mode 100644
index 555020d319..0000000000
--- a/doc/changelog/05-tactic-language/12594-fix-ltac2-type-params.rst
+++ /dev/null
@@ -1,5 +0,0 @@
-- **Fixed:**
- Fix the parsing of multi-parameters Ltac2 types
- (`#12594 <https://github.com/coq/coq/pull/12594>`_,
- fixes `#12595 <https://github.com/coq/coq/issues/12595>`_,
- by Pierre-Marie Pédrot).
diff --git a/doc/changelog/06-ssreflect/12708-fix-12707-ssr-ast-closure-size.rst b/doc/changelog/06-ssreflect/12708-fix-12707-ssr-ast-closure-size.rst
deleted file mode 100644
index 4df8e97e34..0000000000
--- a/doc/changelog/06-ssreflect/12708-fix-12707-ssr-ast-closure-size.rst
+++ /dev/null
@@ -1,5 +0,0 @@
-- **Fixed:**
- Do not store the full environment inside ssr ast_closure_term
- (`#12708 <https://github.com/coq/coq/pull/12708>`_,
- fixes `#12707 <https://github.com/coq/coq/issues/12707>`_,
- by Pierre-Marie Pédrot).
diff --git a/doc/changelog/07-commands-and-options/12677-require-v811-error-compat.rst b/doc/changelog/07-commands-and-options/12677-require-v811-error-compat.rst
deleted file mode 100644
index c654ddd69d..0000000000
--- a/doc/changelog/07-commands-and-options/12677-require-v811-error-compat.rst
+++ /dev/null
@@ -1,5 +0,0 @@
-- **Fixed:**
- Properly report the mismatched magic number of vo files
- (`#12677 <https://github.com/coq/coq/pull/12677>`_,
- fixes `#12513 <https://github.com/coq/coq/issues/12513>`_,
- by Pierre-Marie Pédrot).
diff --git a/doc/changelog/09-coqide/12562-coqide-lax-filename.rst b/doc/changelog/09-coqide/12562-coqide-lax-filename.rst
deleted file mode 100644
index ef3160dd99..0000000000
--- a/doc/changelog/09-coqide/12562-coqide-lax-filename.rst
+++ /dev/null
@@ -1,4 +0,0 @@
-- **Fixed:** CoqIDE no longer exits when trying to open a file whose name is not a valid identifier
- (`#12562 <https://github.com/coq/coq/pull/12562>`_,
- fixes `#10988 <https://github.com/coq/coq/issues/10988>`_,
- by Vincent Laporte).
diff --git a/doc/changelog/11-infrastructure-and-dependencies/12583-fix-remake.rst b/doc/changelog/11-infrastructure-and-dependencies/12583-fix-remake.rst
deleted file mode 100644
index d9c8b634d6..0000000000
--- a/doc/changelog/11-infrastructure-and-dependencies/12583-fix-remake.rst
+++ /dev/null
@@ -1,5 +0,0 @@
-- **Fixed:**
- Running ``make`` in ``test-suite/`` twice (or more) in a row will no longer
- rebuild the ``modules/`` tests on subsequent runs, if they have not been
- modified in the meantime (`#12583 <https://github.com/coq/coq/pull/12583>`_,
- fixes `#12582 <https://github.com/coq/coq/issues/12582>`_, by Jason Gross).
diff --git a/doc/sphinx/changes.rst b/doc/sphinx/changes.rst
index d4707a04d8..0f501382e7 100644
--- a/doc/sphinx/changes.rst
+++ b/doc/sphinx/changes.rst
@@ -136,6 +136,18 @@ Specification language, type inference
:cmd:`Arguments`) has been turned into an error
(`#11368 <https://github.com/coq/coq/pull/11368>`_,
by SimonBoulier).
+- **Changed:**
+ Typeclass resolution, accessible through :tacn:`typeclasses eauto`,
+ now suspends constraints according to their modes
+ instead of failing. If a typeclass constraint does not match
+ any of the declared modes for its class, the constraint is postponed, and
+ the proof search continues on other goals. Proof search does a fixed point
+ computation to try to solve them at a later stage of resolution. It does
+ not fail if there remain only stuck constraints at the end of resolution.
+ This makes typeclasses with declared modes more robust with respect to the
+ order of resolution.
+ (`#10858 <https://github.com/coq/coq/pull/10858>`_,
+ fixes `#9058 <https://github.com/coq/coq/issues/9058>_`, by Matthieu Sozeau).
- **Added:**
Warn when manual implicit arguments are used in unexpected positions
of a term (e.g. in `Check id (forall {x}, x)`) or when an implicit
@@ -1126,6 +1138,84 @@ Infrastructure and dependencies
(`#11245 <https://github.com/coq/coq/pull/11245>`_,
by Emilio Jesus Gallego Arias).
+Changes in 8.12.0
+~~~~~~~~~~~~~~~~~~~~~
+
+.. contents::
+ :local:
+
+**Notations**
+
+- **Added:**
+ Simultaneous definition of terms and notations now support custom entries.
+ Fixes `#11121 <https://github.com/coq/coq/pull/11121>`_.
+ (`#12523 <https://github.com/coq/coq/pull/11523>`_, by Maxime Dénès).
+- **Fixed:**
+ Printing bug with notations for n-ary applications used with applied references.
+ (`#12683 <https://github.com/coq/coq/pull/12683>`_,
+ fixes `#12682 <https://github.com/coq/coq/pull/12682>`_,
+ by Hugo Herbelin).
+
+**Tactics**
+
+- **Fixed:**
+ :tacn:`typeclasses eauto` (and discriminated hint bases) now correctly
+ classify local variables as being unfoldable
+ (`#12572 <https://github.com/coq/coq/pull/12572>`_,
+ fixes `#12571 <https://github.com/coq/coq/issues/12571>`_,
+ by Pierre-Marie Pédrot).
+
+**Tactic language**
+
+- **Fixed:**
+ Excluding occurrences was causing an anomaly in tactics
+ (e.g., :g:`pattern _ at L` where :g:`L` is :g:`-2`).
+ (`#12541 <https://github.com/coq/coq/pull/12541>`_,
+ fixes `#12228 <https://github.com/coq/coq/issues/12228>`_,
+ by Pierre Roux).
+- **Fixed:**
+ Parsing of multi-parameters Ltac2 types
+ (`#12594 <https://github.com/coq/coq/pull/12594>`_,
+ fixes `#12595 <https://github.com/coq/coq/issues/12595>`_,
+ by Pierre-Marie Pédrot).
+
+**SSReflect**
+
+- **Fixed:**
+ Do not store the full environment inside ssr ast_closure_term
+ (`#12708 <https://github.com/coq/coq/pull/12708>`_,
+ fixes `#12707 <https://github.com/coq/coq/issues/12707>`_,
+ by Pierre-Marie Pédrot).
+
+**Commands and options**
+
+- **Fixed:**
+ Properly report the mismatched magic number of vo files
+ (`#12677 <https://github.com/coq/coq/pull/12677>`_,
+ fixes `#12513 <https://github.com/coq/coq/issues/12513>`_,
+ by Pierre-Marie Pédrot).
+- **Changed:**
+ Arbitrary hints have been undeprecated, and their definition
+ now triggers a standard warning instead
+ (`#12678 <https://github.com/coq/coq/pull/12678>`_,
+ fixes `#11970 <https://github.com/coq/coq/issues/11970>`_,
+ by Pierre-Marie Pédrot).
+
+**CoqIDE**
+
+- **Fixed:** CoqIDE no longer exits when trying to open a file whose name is not a valid identifier
+ (`#12562 <https://github.com/coq/coq/pull/12562>`_,
+ fixes `#10988 <https://github.com/coq/coq/issues/10988>`_,
+ by Vincent Laporte).
+
+**Infrastructure and dependencies**
+
+- **Fixed:**
+ Running ``make`` in ``test-suite/`` twice (or more) in a row will no longer
+ rebuild the ``modules/`` tests on subsequent runs, if they have not been
+ modified in the meantime (`#12583 <https://github.com/coq/coq/pull/12583>`_,
+ fixes `#12582 <https://github.com/coq/coq/issues/12582>`_, by Jason Gross).
+
Version 8.11
------------
diff --git a/test-suite/Makefile b/test-suite/Makefile
index 0935617fbf..f7447d6cec 100644
--- a/test-suite/Makefile
+++ b/test-suite/Makefile
@@ -771,8 +771,6 @@ coq-makefile/%.log : coq-makefile/%/run.sh
# coqdoc
-coqdoc: $(patsubst %.sh,%.log,$(wildcard coqdoc/*.sh))
-
$(addsuffix .log,$(wildcard coqdoc/*.v)): %.v.log: %.v %.html.out %.tex.out $(PREREQUISITELOG)
@echo "TEST $< $(call get_coq_prog_args_in_parens,"$<")"
$(HIDE){ \
diff --git a/test-suite/coqdoc/bug12742.html.out b/test-suite/coqdoc/bug12742.html.out
new file mode 100644
index 0000000000..75dd185ff9
--- /dev/null
+++ b/test-suite/coqdoc/bug12742.html.out
@@ -0,0 +1,67 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+<link href="coqdoc.css" rel="stylesheet" type="text/css" />
+<title>Coqdoc.bug12742</title>
+</head>
+
+<body>
+
+<div id="page">
+
+<div id="header">
+</div>
+
+<div id="main">
+
+<h1 class="libtitle">Library Coqdoc.bug12742</h1>
+
+<div class="code">
+</div>
+
+<div class="doc">
+Xxx xxxx xx xxxxx xxxxxxx xxxxx xxx xxxxxxxx xxxxxxx xxx xxx xxxx
+ xxxxxxxxxxxxxx: XX xxx xxxx xxxx xxxxxxxxx xxxxxxxxxxxxx xx xxxxx.
+ Xxx xx xxxxx xxx xxxx xxx xxxxxxxxxxx xx xxxxxxxx xxxxx xxx
+ xxxxxxx xxxxxxxxx xxxxxx xx xxxxxxx xxxxxxxxxxxx. Xxxxx xxxxx
+ xxxx xxxx xxx xxxxx xxxxxxxxxx:
+
+<div class="paragraph"> </div>
+
+<ul class="doclist">
+<li> <i>Xxxxxxxxx xxxxxxx xxxxxxx</i> xxxxxxx "xxxx-xxxxxx" xxxxxxxxx:
+ xxx xxxx xxxx x xxxxxxxxxxx xxx xxxx xxxxxx xxxxxx <i>xxxx</i> xx
+ <i>xxxxx</i> (xx, xxxxxxxxx, <i>xxx'x xxxx: xxx xxx xx xxxx</i>).
+ Xxxxxxxx xxxxx xxxxxxxxxxxx xxx xxxxx xxxxxxx xx xxxxxxxx
+ xxxxxxx, xxxx xxxx xxxxxxx xxxxxxxxxxxx xx xxxxxx xxxxx xxx
+ xxx xxxx xxx xx x xxxxxxxxx xx xxxxxxxx. Xxxxxxxx xx xxxx
+ xxxxx xxxxxxx XXX xxxxxxx, XXX xxxxxxx, xxx xxxxx xxxxxxxx.
+
+<div class="paragraph"> </div>
+
+
+</li>
+<li> <i>Xxxxx xxxxxxxxxx</i> xxx xxxxxx xxxxx xxxx xxxxxxxx xxx xxxx
+ xxxxxxx xxxxxxx xx xxxxxxxx xxxxxx xxxxx xxxxxxxxx xx xxxxx
+ xxxxxxxx xxx xxxx xxxxxxxxx xxxxxxx. Xxxxxx xxxx xxxxx
+ xxxxxxxxxx xxxxxxx Xxxxxxxx, Xxxx, Xxxxx, XXXx, XXX, xxx Xxx,
+ xxxxx xxxx xxxxxx.
+
+</li>
+</ul>
+
+</div>
+<div class="code">
+</div>
+</div>
+
+<div id="footer">
+<hr/><a href="index.html">Index</a><hr/>This page has been generated by <a href="http://coq.inria.fr/">coqdoc</a>
+</div>
+
+</div>
+
+</body>
+</html> \ No newline at end of file
diff --git a/test-suite/coqdoc/bug12742.tex.out b/test-suite/coqdoc/bug12742.tex.out
new file mode 100644
index 0000000000..d7eba096fc
--- /dev/null
+++ b/test-suite/coqdoc/bug12742.tex.out
@@ -0,0 +1,51 @@
+\documentclass[12pt]{report}
+\usepackage[utf8x]{inputenc}
+
+%Warning: tipa declares many non-standard macros used by utf8x to
+%interpret utf8 characters but extra packages might have to be added
+%such as "textgreek" for Greek letters not already in tipa
+%or "stmaryrd" for mathematical symbols.
+%Utf8 codes missing a LaTeX interpretation can be defined by using
+%\DeclareUnicodeCharacter{code}{interpretation}.
+%Use coqdoc's option -p to add new packages or declarations.
+\usepackage{tipa}
+
+\usepackage[T1]{fontenc}
+\usepackage{fullpage}
+\usepackage{coqdoc}
+\usepackage{amsmath,amssymb}
+\usepackage{url}
+\begin{document}
+\coqlibrary{Coqdoc.bug12742}{Library }{Coqdoc.bug12742}
+
+\begin{coqdoccode}
+\end{coqdoccode}
+Xxx xxxx xx xxxxx xxxxxxx xxxxx xxx xxxxxxxx xxxxxxx xxx xxx xxxx
+ xxxxxxxxxxxxxx: XX xxx xxxx xxxx xxxxxxxxx xxxxxxxxxxxxx xx xxxxx.
+ Xxx xx xxxxx xxx xxxx xxx xxxxxxxxxxx xx xxxxxxxx xxxxx xxx
+ xxxxxxx xxxxxxxxx xxxxxx xx xxxxxxx xxxxxxxxxxxx. Xxxxx xxxxx
+ xxxx xxxx xxx xxxxx xxxxxxxxxx:
+
+
+
+\begin{itemize}
+\item \textit{Xxxxxxxxx xxxxxxx xxxxxxx} xxxxxxx ``xxxx-xxxxxx'' xxxxxxxxx:
+ xxx xxxx xxxx x xxxxxxxxxxx xxx xxxx xxxxxx xxxxxx \textit{xxxx} xx
+ \textit{xxxxx} (xx, xxxxxxxxx, \textit{xxx'x xxxx: xxx xxx xx xxxx}).
+ Xxxxxxxx xxxxx xxxxxxxxxxxx xxx xxxxx xxxxxxx xx xxxxxxxx
+ xxxxxxx, xxxx xxxx xxxxxxx xxxxxxxxxxxx xx xxxxxx xxxxx xxx
+ xxx xxxx xxx xx x xxxxxxxxx xx xxxxxxxx. Xxxxxxxx xx xxxx
+ xxxxx xxxxxxx XXX xxxxxxx, XXX xxxxxxx, xxx xxxxx xxxxxxxx.
+
+
+
+\item \textit{Xxxxx xxxxxxxxxx} xxx xxxxxx xxxxx xxxx xxxxxxxx xxx xxxx
+ xxxxxxx xxxxxxx xx xxxxxxxx xxxxxx xxxxx xxxxxxxxx xx xxxxx
+ xxxxxxxx xxx xxxx xxxxxxxxx xxxxxxx. Xxxxxx xxxx xxxxx
+ xxxxxxxxxx xxxxxxx Xxxxxxxx, Xxxx, Xxxxx, XXXx, XXX, xxx Xxx,
+ xxxxx xxxx xxxxxx.
+
+\end{itemize}
+\begin{coqdoccode}
+\end{coqdoccode}
+\end{document}
diff --git a/test-suite/coqdoc/bug12742.v b/test-suite/coqdoc/bug12742.v
new file mode 100644
index 0000000000..8ce1faff00
--- /dev/null
+++ b/test-suite/coqdoc/bug12742.v
@@ -0,0 +1,20 @@
+ (** Xxx xxxx xx xxxxx xxxxxxx xxxxx xxx xxxxxxxx xxxxxxx xxx xxx xxxx
+ xxxxxxxxxxxxxx: XX xxx xxxx xxxx xxxxxxxxx xxxxxxxxxxxxx xx xxxxx.
+ Xxx xx xxxxx xxx xxxx xxx xxxxxxxxxxx xx xxxxxxxx xxxxx xxx
+ xxxxxxx xxxxxxxxx xxxxxx xx xxxxxxx xxxxxxxxxxxx. Xxxxx xxxxx
+ xxxx xxxx xxx xxxxx xxxxxxxxxx:
+
+ - _Xxxxxxxxx xxxxxxx xxxxxxx_ xxxxxxx "xxxx-xxxxxx" xxxxxxxxx:
+ xxx xxxx xxxx x xxxxxxxxxxx xxx xxxx xxxxxx xxxxxx _xxxx_ xx
+ _xxxxx_ (xx, xxxxxxxxx, _xxx'x xxxx: xxx xxx xx xxxx_).
+ Xxxxxxxx xxxxx xxxxxxxxxxxx xxx xxxxx xxxxxxx xx xxxxxxxx
+ xxxxxxx, xxxx xxxx xxxxxxx xxxxxxxxxxxx xx xxxxxx xxxxx xxx
+ xxx xxxx xxx xx x xxxxxxxxx xx xxxxxxxx. Xxxxxxxx xx xxxx
+ xxxxx xxxxxxx XXX xxxxxxx, XXX xxxxxxx, xxx xxxxx xxxxxxxx.
+
+ - _Xxxxx xxxxxxxxxx_ xxx xxxxxx xxxxx xxxx xxxxxxxx xxx xxxx
+ xxxxxxx xxxxxxx xx xxxxxxxx xxxxxx xxxxx xxxxxxxxx xx xxxxx
+ xxxxxxxx xxx xxxx xxxxxxxxx xxxxxxx. Xxxxxx xxxx xxxxx
+ xxxxxxxxxx xxxxxxx Xxxxxxxx, Xxxx, Xxxxx, XXXx, XXX, xxx Xxx,
+ xxxxx xxxx xxxxxx.
+*)
diff --git a/tools/coqdoc/cpretty.mll b/tools/coqdoc/cpretty.mll
index aa3c5b9d3b..b801a3b06e 100644
--- a/tools/coqdoc/cpretty.mll
+++ b/tools/coqdoc/cpretty.mll
@@ -728,7 +728,7 @@ and doc_bol = parse
else
Output.section lev (fun () -> ignore (doc None (from_string s)));
if eol then doc_bol lexbuf else doc None lexbuf }
- | (space_nl* as s) ('-'+ as line)
+ | ((space_nl* nl)? as s) (space* '-'+ as line)
{ let nl_count = count_newlines s in
match check_start_list line with
| Neither -> backtrack_past_newline lexbuf; Lexing.new_line lexbuf; doc None lexbuf
diff --git a/vernac/.ocamlformat-enable b/vernac/.ocamlformat-enable
deleted file mode 100644
index ffaa7e70f4..0000000000
--- a/vernac/.ocamlformat-enable
+++ /dev/null
@@ -1 +0,0 @@
-comHints.ml
diff --git a/vernac/comHints.ml b/vernac/comHints.ml
index 11c318e98b..051560fb63 100644
--- a/vernac/comHints.ml
+++ b/vernac/comHints.ml
@@ -65,11 +65,11 @@ let project_hint ~poly pri l2r r =
(info, false, true, Hints.PathAny, Hints.IsGlobRef (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")
(* Only error when we have to (axioms may be instantiated if from functors)
XXX maybe error if not from a functor argument?