rust-lang/rust#22980 replaced `cfg(ndebug)` with `cfg(not(debug_assertions))`. The compiler no longer sets `cfg(ndebug)` in release builds.