Skip to content

fail_ and fail_bounds_check lang items don't belong to libcore #17886

@farcaller

Description

@farcaller

Both fail_ and fail_bounds_check are platform-dependent and the default implementation in libcore makes it impossible to override those.

I can expect fail to be infinite loop or bkpt instruction, it must not pull in error strings and chunks of fmt that are never doing to be displayed.

At least it's reasonable to cfg-guard the implementations, so cross-tool users could build libcore without them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions