fix nightly

The enum change is pretty straight-forward, but I wasn't sure about the functions in `std::num::{FloatMath, SignedInt}`.

This change fixes the build on my machine.