ocaml-ppx / ppx_deriving

Type-driven code generation for OCaml
MIT License
466 stars 89 forks source link

Fix misplaced attribute warning #283

Open samwgoldman opened 7 months ago

samwgoldman commented 7 months ago

This fixes #280, where OCaml 5.2's new warning about unused-attributes fires.

To test, I made this change locally, pinned ppx_deriving to my fork using opam, and followed the repro case in the linked issue. With this change, the build succeeds without an unused-attribute warning.