-
Notifications
You must be signed in to change notification settings - Fork 414
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Alert floating attributes in mli are ignored #6820
Comments
I checked and ocamlopt doesn't output any warning either, so perhaps this is really an upstream OCaml bug. |
Here is a self contained test btw:
|
Is this an instance of #6115? |
Answering to myself: no, it is a side-effect of the "wrapped executables" feature of Dune (so a bug). You will see the alert if you add |
Thanks for your prompt responses! I confirm that |
See ocaml/ocaml#11867 for the upstream report. |
Reproduction
With the following files:
Run
dune build
.Expected Behavior
dune build
should exit 0 (or 1 if alerts are fatal) with an error message as we can observe with the following command line:Actual Behavior
dune build
exits 0 without printing anything.Specifications
dune
(output ofdune --version
): 3.6.1ocaml
(output ofocamlc --version
): 4.14.0Additional information
If the attribute is attached to the
val x
declaration, it works correctly. A workaround would be to remove the floating attribute and add an item attribute for each declaration.Same problem with
deprecated
orocaml.deprecated
attributes.The text was updated successfully, but these errors were encountered: