Closed Alizter closed 1 year ago
Thanks for sharing! :pray: I agree that mutations should avoid fatal warnings if possible. I'm supposed to be on holiday and unplug, so it may take a bit before I take a more in depth look at fixing it.
No rush! Just wanted to make note of things before I forget.
I have a suggested fix in #23.
With it the dune build @src/dune_engine/check --instrument-with mutaml
command succeeds on my machine.
Yesterday when I was instrumenting
dune_engine
I ran into a compiler warning only when building with the instrumentation.To reproduce:
(instrumentation)
field at the end for mutaml.dune build @src/dune_engine/check --instrument-with mutaml
and you will get an error (fatal warning).My workaround yesterday was to just do the build in
--profile release
so that compiler warnings were non-fatal. I thought I would report this anyway. This isn't quite a compiler error that you've said needs reporting, but I thought I'd mention it anyway in case there is something you can do about it.I fell like redundant cases can be removed if they are detected. No idea if this is simple to do.