try to avoid capture

This commit is contained in:
Simon Cruanes 2023-12-22 21:33:30 -05:00
parent a6ba54a817
commit b1ccd58040
No known key found for this signature in database
GPG key ID: EBFFF6F283F3A2B4

View file

@ -53,9 +53,9 @@ let expand_top_let ~ctxt rec_flag (vbs : _ list) =
Trace_core.enter_span ~__FILE__ ~__LINE__ __FUNCTION__
in
try
let res = [%e e] in
let _trace_ppx_res = [%e e] in
Trace_core.exit_span _trace_span;
res
__trace_ppx_res
with exn ->
Trace_core.exit_span _trace_span;
raise exn]