• [$] Stabilizing Rust's never type

    From LWN.net@86:200/23 to All on Wed Sep 9 06:40:09 2026


    A function's return type is supposed to indicate the kind of data that it produces.
    Rust's "never" type, which is

    denoted by an exclamation mark ("!"), is the type the language uses to mark
    a function that never returns and other places where a value can never occur. For
    a long time, the never type was used internally by the compiler, but was considered an unstable feature. On

    August�24, after more than two years of work,
    Rust-compiler-contributor "waffle" finally managed to stabilize the type. It took so long, in part, because it involved a small breaking
    change to previous Rust editions, which the compiler maintainers needed to ensure did not impact much real code.

    https://lwn.net/Articles/1091015/
    --- SBBSecho 3.37-Linux
    * Origin: Palantir * palantirbbs.ddns.net * Pensacola, FL * (86:200/23)