Skip to content

Codegen regression from stable to nightly and beta #102208

Closed
@newpavlov

Description

@newpavlov

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions