aboutsummaryrefslogtreecommitdiff
path: root/mathcomp/ssreflect/ssreflect.v
diff options
context:
space:
mode:
authorCyril Cohen2021-01-22 15:13:52 +0100
committerGitHub2021-01-22 15:13:52 +0100
commit5853de19f08ec7ddb3782ea9bb4783fdc8443558 (patch)
treeab0ca09da86f27ef6bdf5f9f2e1bc32c5556638e /mathcomp/ssreflect/ssreflect.v
parentc1c8ae66da745ec3960ecab02549ad918051fb0c (diff)
parent9ea33f07e98066cd05b5ab93f336f95e83272828 (diff)
Merge pull request #686 from pi8027/drop-coq-8.10
Drop support for Coq 8.10
Diffstat (limited to 'mathcomp/ssreflect/ssreflect.v')
-rw-r--r--mathcomp/ssreflect/ssreflect.v18
1 files changed, 2 insertions, 16 deletions
diff --git a/mathcomp/ssreflect/ssreflect.v b/mathcomp/ssreflect/ssreflect.v
index e1e1b71..faecce2 100644
--- a/mathcomp/ssreflect/ssreflect.v
+++ b/mathcomp/ssreflect/ssreflect.v
@@ -12,22 +12,6 @@ Global Set Bullet Behavior "None".
(* Prop are canonical nonPropType instances. This is *)
(* useful for applied views. *)
(* --> This will become standard with the Coq v8.11 SSReflect core library. *)
-(* deprecate old new == new, but warning that old is deprecated and new *)
-(* should be used instead. *)
-(* --> Usage: Notation old := (deprecate old new) (only parsing). *)
-(* --> Caveat: deprecate old new only inherits new's maximal implicits; *)
-(* on-demand implicits should be added after : (deprecate old new _). *)
-(* --> Caveat 2: if premises or conclusions need to be adjusted, of for *)
-(* non-prenex implicits, use the idiom: *)
-(* Notation old := ((fun a1 a2 ... => deprecate old new a1 a2 ...) *)
-(* _ _ ... _) (only printing). *)
-(* where all the implicit a_i's occur first, and correspond to the *)
-(* trailing _'s, making sure deprecate old new is fully applied and *)
-(* there are _no implicits_ inside the (fun .. => ..) expression. This *)
-(* is to avoid triggering a bug in SSReflect elaboration that is *)
-(* triggered by such evars under binders. *)
-(* Import Deprecation.Silent :: turn off deprecation warning messages. *)
-(* Import Deprecation.Reject :: raise an error instead of only warning. *)
(* *)
(* Intro pattern ltac views: *)
(* - top of the stack actions: *)
@@ -95,6 +79,8 @@ Ltac flag old_id new_id :=
Module Exports.
Arguments hide {T} u v /.
Coercion hide : exposed >-> hidden.
+#[deprecated(since="mathcomp 1.13.0",
+ note="Use the deprecated attribute instead.")]
Notation deprecate old_id new_id :=
(hide (fun old_id new_id => ltac:(flag old_id new_id; exact tt)) new_id)
(only parsing).