Debug asserts aren't enabled by default in optimized build

fixes #17081
I thought it was defined in https://github.com/rust-lang/rust/blob/master/src/librustc/driver/config.rs#L781 but it seems that I was wrong.

I'll look into it, sorry if my pr was flawed :/