core: Make funnel shifts panic only if overflow checks are enabled
Change from the existing behavior of panicking unconditionally to panicking only if debug assertions are enabled, wrapping otherwise. This is more consistent with other operations, and gives slightly better codegen [1]. Suggested in the stabilization PR, RUST-161015. [1]: https://rust.godbolt.org/z/Yz81zhbno
T
Trevor Gross committed
320b5e08c45f948f859c0705f33b5b3a5486dd98
Parent: c83b0a4