aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime Dénès2019-03-22 20:54:51 +0100
committerMaxime Dénès2019-03-27 12:29:46 +0100
commit676348579e907c09f575863b5afba42f5478041a (patch)
treedc12a2412c0819db9dd72d50943a9bc933ca010e
parent9ad325a9ff3871f46a953e5fd2362f8eab735bdf (diff)
Deprecate `Refine Instance Mode` option
This is in view of the 8.10 release, after which we will remove the option and the `VtUnknown` classification.
-rw-r--r--CHANGES.md3
-rw-r--r--doc/sphinx/addendum/type-classes.rst2
-rw-r--r--vernac/classes.ml2
3 files changed, 6 insertions, 1 deletions
diff --git a/CHANGES.md b/CHANGES.md
index dcf321c7ff..d43dc668e8 100644
--- a/CHANGES.md
+++ b/CHANGES.md
@@ -153,6 +153,9 @@ Vernacular commands
- The `Show Script` command has been deprecated.
+- Option `Refine Instance Mode` has been deprecated and will be removed in
+ the next version.
+
Tools
- The `-native-compiler` flag of `coqc` and `coqtop` now takes an argument which can have three values:
diff --git a/doc/sphinx/addendum/type-classes.rst b/doc/sphinx/addendum/type-classes.rst
index e6a5b3972c..0a480bdbe7 100644
--- a/doc/sphinx/addendum/type-classes.rst
+++ b/doc/sphinx/addendum/type-classes.rst
@@ -561,6 +561,8 @@ Settings
.. flag:: Refine Instance Mode
+ .. deprecated:: 8.10
+
This flag allows to switch the behavior of instance declarations made through
the Instance command.
diff --git a/vernac/classes.ml b/vernac/classes.ml
index 1981e24ae4..61b8cc3dcb 100644
--- a/vernac/classes.ml
+++ b/vernac/classes.ml
@@ -31,7 +31,7 @@ open Entries
let refine_instance = ref false
let () = Goptions.(declare_bool_option {
- optdepr = false;
+ optdepr = true;
optname = "definition of instances by refining";
optkey = ["Refine";"Instance";"Mode"];
optread = (fun () -> !refine_instance);