core.runtime

The default handler for failed slice bounds checks. Reports the invalid index and source location, then terminates the program.

0 structs · 1 functions · Public API

Functions

__global_bounds_check_handler

func
__global_bounds_check_handler : func(
    index : i64,
    length : i64,
    location : SourceLocation
) -> void
Reports an invalid slice index and terminates the process. The compiler uses
this standard implementation when the root application does not provide an
exact override.