Skip to content

Commit c547400

Browse files
committed
Fix Rel in attributes when passing additional ocamlmig rewriting arguments
1 parent 21a9d13 commit c547400

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

src/core/QCheck.mli

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ module Gen : sig
487487
val list_size : int t -> 'a t -> 'a list t
488488
(** Builds a list generator from a (non-negative) size generator and an element generator. *)
489489

490-
val list_repeat : int -> 'a t -> 'a list t [@@deprecated "Use [list_size (return i) g] instead"][@@migrate { repl = (fun i g -> Rel.list_size (return i) g) }]
490+
val list_repeat : int -> 'a t -> 'a list t [@@deprecated "Use [list_size (return i) g] instead"][@@migrate { repl = (fun i g -> Rel.list_size (Rel.return i) g) }]
491491
(** [list_repeat i g] builds a list generator from exactly [i] elements generated by [g].
492492
@deprecated use [list_size (return i) g] instead. *)
493493

@@ -497,7 +497,7 @@ module Gen : sig
497497
val array_size : int t -> 'a t -> 'a array t
498498
(** Builds an array generator from a (non-negative) size generator and an element generator. *)
499499

500-
val array_repeat : int -> 'a t -> 'a array t [@@deprecated "Use [array_size (return i) g] instead"][@@migrate { repl = (fun i g -> Rel.array_size (return i) g) }]
500+
val array_repeat : int -> 'a t -> 'a array t [@@deprecated "Use [array_size (return i) g] instead"][@@migrate { repl = (fun i g -> Rel.array_size (Rel.return i) g) }]
501501
(** [array_repeat i g] builds an array generator from exactly [i] elements generated by [g].
502502
@deprecated use [array_size (return i) g] instead. *)
503503

@@ -1579,40 +1579,40 @@ val string_printable : string arbitrary
15791579
and distribution of characters of [char_printable].
15801580
@since 0.20 *)
15811581

1582-
val printable_string_of_size : int Gen.t -> string arbitrary [@@deprecated "Use [string_size_of] instead"][@@migrate { repl = (fun s -> Rel.string_size_of s Gen.char_printable) }]
1582+
val printable_string_of_size : int Gen.t -> string arbitrary [@@deprecated "Use [string_size_of] instead"][@@migrate { repl = (fun s -> Rel.string_size_of s Rel.Gen.char_printable) }]
15831583
(** Generates strings with distribution of characters of [char_printable].
15841584
@deprecated use {!string_size_of} instead. *)
15851585

1586-
val string_printable_of_size : int Gen.t -> string arbitrary [@@deprecated "Use [string_size_of] instead"][@@migrate { repl = (fun s -> Rel.string_size_of s Gen.char_printable) }]
1586+
val string_printable_of_size : int Gen.t -> string arbitrary [@@deprecated "Use [string_size_of] instead"][@@migrate { repl = (fun s -> Rel.string_size_of s Rel.Gen.char_printable) }]
15871587
(** Synonym for [printable_string_of_size] added for convenience.
15881588
@since 0.20
15891589
@deprecated use {!string_size_of} instead. *)
15901590

1591-
val small_printable_string : string arbitrary [@@deprecated "Use [string_size_of] instead"][@@migrate { repl = Rel.string_size_of Gen.nat_small Gen.char_printable }]
1591+
val small_printable_string : string arbitrary [@@deprecated "Use [string_size_of] instead"][@@migrate { repl = Rel.string_size_of Rel.Gen.nat_small Rel.Gen.char_printable }]
15921592
(** Generates strings with a length of [Gen.nat_small]
15931593
and distribution of characters of [char_printable].
15941594
@deprecated use {!string_size_of} instead. *)
15951595

1596-
val string_small_printable : string arbitrary [@@deprecated "Use [string_size_of] instead"][@@migrate { repl = Rel.string_size_of Gen.nat_small Gen.char_printable }]
1596+
val string_small_printable : string arbitrary [@@deprecated "Use [string_size_of] instead"][@@migrate { repl = Rel.string_size_of Rel.Gen.nat_small Rel.Gen.char_printable }]
15971597
(** Synonym for [small_printable_string] added for convenience.
15981598
@since 0.20
15991599
@deprecated use {!string_size_of} instead. *)
16001600

1601-
val numeral_string : string arbitrary [@@deprecated "Use [string_of] instead"][@@migrate { repl = Rel.string_of Gen.char_numeral }]
1601+
val numeral_string : string arbitrary [@@deprecated "Use [string_of] instead"][@@migrate { repl = Rel.string_of Rel.Gen.char_numeral }]
16021602
(** Generates strings with a distribution of length of {!Gen.nat}
16031603
and distribution of characters of [char_numeral].
16041604
@deprecated use {!string_of} instead. *)
16051605

1606-
val string_numeral : string arbitrary [@@deprecated "Use [string_of] instead"][@@migrate { repl = Rel.string_of Gen.char_numeral }]
1606+
val string_numeral : string arbitrary [@@deprecated "Use [string_of] instead"][@@migrate { repl = Rel.string_of Rel.Gen.char_numeral }]
16071607
(** Synonym for [numeral_string] added for convenience.
16081608
@since 0.20
16091609
@deprecated use {!string_of} instead. *)
16101610

1611-
val numeral_string_of_size : int Gen.t -> string arbitrary [@@deprecated "Use [string_size_of] instead"][@@migrate { repl = (fun s -> Rel.string_size_of s Gen.char_numeral) }]
1611+
val numeral_string_of_size : int Gen.t -> string arbitrary [@@deprecated "Use [string_size_of] instead"][@@migrate { repl = (fun s -> Rel.string_size_of s Rel.Gen.char_numeral) }]
16121612
(** Generates strings with a distribution of characters of [char_numeral].
16131613
@deprecated use {!string_size_of} instead. *)
16141614

1615-
val string_numeral_of_size : int Gen.t -> string arbitrary [@@deprecated "Use [string_size_of] instead"][@@migrate { repl = (fun s -> Rel.string_size_of s Gen.char_numeral) }]
1615+
val string_numeral_of_size : int Gen.t -> string arbitrary [@@deprecated "Use [string_size_of] instead"][@@migrate { repl = (fun s -> Rel.string_size_of s Rel.Gen.char_numeral) }]
16161616
(** Synonym for [numeral_string_of_size] added for convenience.
16171617
@since 0.20
16181618
@deprecated use {!string_size_of} instead. *)

src/core/QCheck2.mli

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -858,7 +858,7 @@ module Gen : sig
858858
Shrinks on the number of elements first, then on elements.
859859
*)
860860

861-
val list_repeat : int -> 'a t -> 'a list t [@@deprecated "Use [list_size (return i) g] instead"][@@migrate { repl = (fun i g -> Rel.list_size (return i) g) }]
861+
val list_repeat : int -> 'a t -> 'a list t [@@deprecated "Use [list_size (return i) g] instead"][@@migrate { repl = (fun i g -> Rel.list_size (Rel.return i) g) }]
862862
(** [list_repeat i g] builds a list generator from exactly [i] elements generated by [g].
863863
864864
Shrinks on elements only.
@@ -893,7 +893,7 @@ module Gen : sig
893893
894894
@deprecated use {!array_small} instead. *)
895895

896-
val array_repeat : int -> 'a t -> 'a array t [@@deprecated "Use [array_size (return i) g] instead"][@@migrate { repl = (fun i g -> Rel.array_size (return i) g) }]
896+
val array_repeat : int -> 'a t -> 'a array t [@@deprecated "Use [array_size (return i) g] instead"][@@migrate { repl = (fun i g -> Rel.array_size (Rel.return i) g) }]
897897
(** [array_repeat i g] builds an array generator from exactly [i] elements generated by [g].
898898
899899
Shrinks on elements only.

0 commit comments

Comments
 (0)