How to panic when a NaN is created?

Viewed 332

I'm trying to find where a NaN is created in a huge codebase. Is there some compiler flag or something I can use to panic on NaN so I can find what line it's on?

1 Answers

There's no compiler flag. The best you can do is to wrap your floats in noisy_float newtype.

Related