Skip to content

Add an expect intrinsic to the stdlib. #22805

Closed
@mahkoh

Description

@mahkoh
extern {
    #[link_name = "llvm.expect.i8"]
    fn expect(val: u8, expected_val: u8) -> u8;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions