Skip to content

Commit a14bb69

Browse files
authored
Merge pull request #570 from ocaml-multicore/built-in-x-maintenance
Use dune's built-in x-maintenance support
2 parents ad96741 + 04827d0 commit a14bb69

16 files changed

+15
-15
lines changed

CHANGES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## NEXT RELEASE
44

5-
- ...
5+
- #570: Use dune.3.18 support to generate `x-maintenance-intent` entries
66

77
## 0.9
88

doc/stm/mutable_set_v0.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ end
1919

2020
type t = {
2121
mutable content : S.t;
22-
mutable cardinal : int }
22+
mutable cardinal : int } [@@warning "-unused-field"]
2323

2424
let empty () = { content = S.empty; cardinal = 0 }
2525

dune-project

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
(lang dune 3.0)
1+
(lang dune 3.18)
22
(name multicoretests)
33
(generate_opam_files true)
44

@@ -7,6 +7,7 @@
77
(maintainers "Jan Midtgaard <[email protected]>")
88
(license BSD-2-clause)
99
(version "0.9")
10+
(maintenance_intent "(latest)")
1011

1112
(package
1213
(name multicoretests)

lib/lin.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ module type Spec = sig
327327
val api : (int * t elem) list
328328
end
329329

330-
module MakeCmd (ApiSpec : Spec) : Internal.CmdSpec = struct
330+
module MakeCmd (ApiSpec : Spec) : Internal.CmdSpec with type t = ApiSpec.t = struct
331331

332332
type t = ApiSpec.t
333333

lib/lin.mli

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ end
330330

331331
(** {1 Generating a linearization testing module from an API} *)
332332

333-
module MakeCmd (Spec : Spec) : Internal.CmdSpec [@alert "-internal"]
333+
module MakeCmd (Spec : Spec) : Internal.CmdSpec with type t = Spec.t [@alert "-internal"]
334334
(** Functor to map a combinator-based module signature description
335335
into a raw {!Lin} description.
336336
This functor is exposed for internal uses only, its API may change

lib/lin_domain.mli

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ module Make (Spec : Spec) : sig
3333
raised underway. It is intended as a stress test to run operations at a
3434
high frequency and detect unexpected exceptions or crashes. It does not
3535
perform an interleaving search like {!lin_test} and {!neg_lin_test}. *)
36-
end
36+
end [@@warning "-unused-functor-parameter"]

lib/lin_effect.mli

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ module Make_internal (Spec : Internal.CmdSpec [@alert "-internal"]) : sig
1111
val neg_lin_test : count:int -> name:string -> QCheck.Test.t
1212
end
1313
[@@alert internal "This module is exposed for internal uses only, its API may change at any time"]
14+
[@@warning "-unused-functor-parameter"]
1415

1516
val fork : (unit -> unit) -> unit
1617
(** Helper function to fork a process in the underlying {!Stdlib.Effect}-based scheduler
@@ -36,4 +37,5 @@ module Make (Spec : Spec) : sig
3637
afterwards.
3738
*)
3839
end
39-
[@@alert experimental "This module is experimental: The interface is not considered stable, and it may fail to trigger concurrency issues that are present."]
40+
[@@alert experimental "This module is experimental: The interface is not considered stable, and it may fail to trigger concurrency issues that are present."]
41+
[@@warning "-unused-functor-parameter"]

lib/lin_thread.mli

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,4 @@ module Make (Spec : Spec) : sig
4444
afterwards.
4545
*)
4646
end
47+
[@@warning "-unused-functor-parameter"]

multicoretests.opam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ tags: [
2020
homepage: "https://github.com/ocaml-multicore/multicoretests"
2121
bug-reports: "https://github.com/ocaml-multicore/multicoretests/issues"
2222
depends: [
23-
"dune" {>= "3.0"}
23+
"dune" {>= "3.18"}
2424
"base-domains"
2525
"qcheck-core" {>= "0.25"}
2626
"qcheck-lin" {= version}

multicoretests.opam.template

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)