Skip to content

Commit

Permalink
flambda-backend: Move alert attributes in stdlib mlis to where they a…
Browse files Browse the repository at this point in the history
…ren't ignored (ocaml-flambda#2918)

(cherry picked from commit 3cae2fb)
  • Loading branch information
ncik-roberts authored Aug 13, 2024
1 parent 3c5e816 commit 67c4dc4
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 11 deletions.
4 changes: 2 additions & 2 deletions stdlib/arg.mli
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
(* *)
(**************************************************************************)

open! Stdlib

(** Parsing of command line arguments.
This module provides a general mechanism for extracting options and
Expand Down Expand Up @@ -79,6 +77,8 @@ open! Stdlib
only be called from a single domain."
]

open! Stdlib

type spec =
| Unit of (unit -> unit) (** Call the function with unit argument *)
| Bool of (bool -> unit) (** Call the function with a bool argument *)
Expand Down
4 changes: 2 additions & 2 deletions stdlib/buffer.mli
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
(* *)
(**************************************************************************)

open! Stdlib

(** Extensible buffers.
This module implements buffers that automatically expand
Expand All @@ -41,6 +39,8 @@ open! Stdlib
"Unsynchronized accesses to buffers are a programming error."
]

open! Stdlib

(**
Unsynchronized accesses to a buffer may lead to an invalid buffer state.
Thus, concurrent accesses to a buffer must be synchronized (for instance
Expand Down
3 changes: 2 additions & 1 deletion stdlib/ephemeron.mli
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
(* *)
(**************************************************************************)

open! Stdlib
(** Ephemerons and weak hash tables.
Ephemerons and weak hash tables are useful when one wants to cache
Expand Down Expand Up @@ -73,6 +72,8 @@ open! Stdlib
"Unsynchronized accesses to weak hash tables are a programming error."
]

open! Stdlib

(**
Unsynchronized accesses to a weak hash table may lead to an invalid
weak hash table state. Thus, concurrent accesses to a buffer must be
Expand Down
4 changes: 2 additions & 2 deletions stdlib/queue.mli
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
(* *)
(**************************************************************************)

open! Stdlib

(** First-in first-out queues.
This module implements queues (FIFOs), with in-place modification.
Expand All @@ -28,6 +26,8 @@ open! Stdlib
"Unsynchronized accesses to queues are a programming error."
]

open! Stdlib

(**
Unsynchronized accesses to a queue may lead to an invalid queue state.
Thus, concurrent accesses to queues must be synchronized (for instance
Expand Down
4 changes: 2 additions & 2 deletions stdlib/scanf.mli
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
(* *)
(**************************************************************************)

open! Stdlib

(** Formatted input functions. *)

[@@@ocaml.warning "+A-e"]
Expand Down Expand Up @@ -92,6 +90,8 @@ open! Stdlib
"Unsynchronized accesses to Scanning.in_channel are a programming error."
]

open! Stdlib

(**
Unsynchronized accesses to a {!Scanning.in_channel} may lead to an
invalid {!Scanning.in_channel} state. Thus, concurrent accesses
Expand Down
4 changes: 2 additions & 2 deletions stdlib/stack.mli
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
(* *)
(**************************************************************************)

open! Stdlib

(** Last-in first-out stacks.
This module implements stacks (LIFOs), with in-place modification.
Expand All @@ -27,6 +25,8 @@ open! Stdlib
"Unsynchronized accesses to stacks are a programming error."
]

open! Stdlib

(**
Unsynchronized accesses to a stack may lead to an invalid queue state.
Thus, concurrent accesses to stacks must be synchronized (for instance
Expand Down

0 comments on commit 67c4dc4

Please sign in to comment.