Skip to content

Commit 6dfb8e0

Browse files
committed
ppx_optcomp_light: mark the attribute if as handled
1 parent c5bfc46 commit 6dfb8e0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compiler/ppx/ppx_optcomp_light.ml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,8 @@ let keep loc (attrs : attributes) =
148148
| [] -> true
149149
| _ -> (
150150
try
151-
let keep_one { attr_payload; attr_loc; _ } =
151+
let keep_one ({ attr_payload; attr_loc; _ } as attr) =
152+
Ppxlib.Attribute.mark_as_handled_manually attr;
152153
let e =
153154
match attr_payload with
154155
| PStr [ { pstr_desc = Pstr_eval (e, []); _ } ] -> e

0 commit comments

Comments
 (0)