Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
overlay rewriter https://github.com/proux01/rewriter rocq21851 21851
2 changes: 1 addition & 1 deletion library/nametab.ml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ let corelib_id = Id.of_string "Corelib"

let warn_deprecated_dirpath_Coq =
CWarnings.create ~name:"deprecated-dirpath-Coq"
~category:Deprecation.Version.v9_0
~category:Deprecation.Version.v9_0 ~default:AsError
~quickfix:(fun ~loc (old_id, new_id) -> [Quickfix.make ~loc new_id])
(fun (old_id, new_id) ->
Pp.(old_id ++ spc () ++ str "has been replaced by" ++ spc () ++ new_id ++ str "."))
Expand Down
2 changes: 1 addition & 1 deletion test-suite/bugs/bug_4976.v
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Require Import Coq.Setoids.Setoid.
From Corelib Require Import Setoid.
Definition silly (n : nat) := True.
Ltac silly :=
lazymatch goal with
Expand Down
8 changes: 4 additions & 4 deletions test-suite/output/Qf_stdlib.out
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
File "./output/Qf_stdlib.v", line 16, characters 6-22:
File "./output/Qf_stdlib.v", line 16, characters 42-58:
Warning: Coq.Init.Nat.add has been replaced by Corelib.Init.Nat.add.
[deprecated-dirpath-Coq,deprecated-since-9.0,deprecated,default]
Quickfix:
Replace File "./output/Qf_stdlib.v", line 16, characters 6-22 with Corelib.Init.Nat.add
Replace File "./output/Qf_stdlib.v", line 16, characters 42-58 with Corelib.Init.Nat.add
Nat.add : nat -> nat -> nat

Nat.add is not universe polymorphic
Arguments Nat.add (n m)%_nat_scope
Nat.add is transparent
Expands to: Constant Corelib.Init.Nat.add
Declared in library Corelib.Init.Nat, line 47, characters 9-12
File "./output/Qf_stdlib.v", line 17, characters 6-22:
File "./output/Qf_stdlib.v", line 17, characters 42-58:
Warning: Coq.Init.Nat.add has been replaced by Corelib.Init.Nat.add.
[deprecated-dirpath-Coq,deprecated-since-9.0,deprecated,default]
Quickfix:
Replace File "./output/Qf_stdlib.v", line 17, characters 6-22 with Corelib.Init.Nat.add
Replace File "./output/Qf_stdlib.v", line 17, characters 42-58 with Corelib.Init.Nat.add
Nat.add
: nat -> nat -> nat
4 changes: 2 additions & 2 deletions test-suite/output/Qf_stdlib.v
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ Require Import Corelib.ssr.ssrbool.
From Corelib Require Import ssreflect ssrbool.

(* Note: this tests the two different lookup modes *)
About Coq.Init.Nat.add.
Check Coq.Init.Nat.add.
#[warning="deprecated-dirpath-Coq"] About Coq.Init.Nat.add.
#[warning="deprecated-dirpath-Coq"] Check Coq.Init.Nat.add.
2 changes: 1 addition & 1 deletion vernac/loadpath.ml
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ let locate_qualified_library ?root qid :

let warn_deprecated_missing_stdlib =
CWarnings.create ~name:"deprecated-missing-stdlib"
~category:Deprecation.Version.v9_0
~category:Deprecation.Version.v9_0 ~default:AsError
(fun qid ->
Pp.(str "Loading Stdlib without prefix is deprecated." ++ spc ()
++ str "Use \"From Stdlib Require " ++ Libnames.pr_qualid qid
Expand Down
2 changes: 1 addition & 1 deletion vernac/synterp.ml
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ end

let warn_deprecated_from_Coq =
CWarnings.create ~name:"deprecated-from-Coq"
~category:Deprecation.Version.v9_0
~category:Deprecation.Version.v9_0 ~default:AsError
~quickfix:(fun ~loc qid -> [Quickfix.make ~loc (Libnames.pr_qualid qid)])
(fun (_qid : qualid) -> strbrk
"\"From Coq\" has been replaced by \"From Stdlib\".")
Expand Down
Loading