Skip to content

Commit

Permalink
silence remaining deprecation warnings in the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gasche committed Jun 25, 2019
1 parent 26a7e95 commit a7788f8
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src_test/eq/test_deriving_eq.cppo.ml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ type a7 = char [@@deriving eq]
type a8 = string [@@deriving eq]
type a9 = bytes [@@deriving eq]
type r1 = int ref [@@deriving eq]
type r2 = int Pervasives.ref [@@deriving eq]
type r2 = int Pervasives.ref [@@ocaml.warning "-3"][@@deriving eq]
type l = int list [@@deriving eq]
type a = int array [@@deriving eq]
type o = int option [@@deriving eq]
Expand Down
1 change: 1 addition & 0 deletions src_test/fold/test_deriving_fold.cppo.ml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ let test_btree ctxt =
assert_equal ~printer:string_of_int 6 (fold_btree (+) 0 btree)

type 'a reflist = 'a Pervasives.ref list
[@@ocaml.warning "-3"]
[@@deriving fold]

let test_reflist ctxt =
Expand Down
2 changes: 2 additions & 0 deletions src_test/iter/test_deriving_iter.cppo.ml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ module T : sig
[@@deriving iter]

type 'a reflist = 'a Pervasives.ref list
[@@ocaml.warning "-3"]
[@@deriving iter]

end = struct
Expand All @@ -21,6 +22,7 @@ end = struct
[@@deriving iter]

type 'a reflist = 'a Pervasives.ref list
[@@ocaml.warning "-3"]
[@@deriving iter]

end
Expand Down
4 changes: 3 additions & 1 deletion src_test/ord/test_deriving_ord.cppo.ml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,9 @@ let test_ref1 ctxt =
assert_equal ~printer (0) (compare_r1 (ref 0) (ref 0));
assert_equal ~printer (1) (compare_r1 (ref 1) (ref 0))

type r2 = int Pervasives.ref [@@deriving ord]
type r2 = int Pervasives.ref
[@@ocaml.warning "-3"]
[@@deriving ord]
let test_ref2 ctxt =
assert_equal ~printer (-1) (compare_r2 (ref 0) (ref 1));
assert_equal ~printer (0) (compare_r2 (ref 0) (ref 0));
Expand Down
2 changes: 1 addition & 1 deletion src_test/runtime/test_runtime.cppo.ml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ let test_ref_included
let test_ref_qualified
(x : 'a ref)
=
(x : 'a Ppx_deriving_runtime.Pervasives.ref)
(x : 'a Ppx_deriving_runtime.Pervasives.ref[@ocaml.warning "-3"])

let test_backtrace
(x : Printexc.raw_backtrace)
Expand Down
4 changes: 2 additions & 2 deletions src_test/show/test_deriving_show.cppo.ml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ type a7 = char [@@deriving show]
type a8 = string [@@deriving show]
type a9 = bytes [@@deriving show]
type r = int ref [@@deriving show]
type r2 = int Pervasives.ref [@@deriving show]
type r3 = int Pervasives.ref ref [@@deriving show]
type r2 = int Pervasives.ref [@@ocaml.warning "-3"] [@@deriving show]
type r3 = int Pervasives.ref ref [@@ocaml.warning "-3"] [@@deriving show]
type l = int list [@@deriving show]
type a = int array [@@deriving show]
type o = int option [@@deriving show]
Expand Down

0 comments on commit a7788f8

Please sign in to comment.