Closed
Description
While discussing potential alternative implementations for array::map
in #102202, the following regression was discovered on nigthly/beta: https://rust.godbolt.org/z/h39Tr776T See assembly for foo2
, it should be identical to foo1
, but for some reason compiler was unable to eliminate panics. Switching toolchain to 1.64 results in expected efficient assembly.