Skip to content

Unsupported intrinsic abort_immediate (reached by Rc's overflow guards as of nightly-2026-10-11) #5036

Closed

Description

@kasimte

I tried this code:

#![feature(core_intrinsics)]

#[kani::proof]
#[kani::should_panic]
fn abort_is_panic_like() {
    core::intrinsics::abort_immediate();
}

using the following command line invocation:

kani repro.rs

with Kani version: 0.68.0 at commit 6ce55b95 (the verify-rust-std pin); main (9461e07af) has no handling for this intrinsic either.

I expected to see this happen: verification succeeds, with abort_immediate treated like abort (reaching it is a panic-like failed assertion).

Instead, this happened:

Failed Checks: Unsupported intrinsic abort_immediate
VERIFICATION:- FAILED (encountered failures other than panics, which were unexpected)

The gotoc backend handles abort but not abort_immediate. As of nightly-2026-10-11, core::intrinsics no longer declares abort. Its renamed successor is abort_immediate (rust-lang/rust#163574), with the same documented behavior, behind the unstable core::process::abort_immediate. The standard library calls it directly: Rc::inc_strong and Rc::inc_weak reference-count overflow guards previously called abort and now call intrinsics::abort_immediate().

In model-checking/verify-rust-std#661, two should_panic harnesses covering Rc count overflow passed on the previous toolchain and fail with this error after the toolchain bump.

Activity

  1. added
    [C] Bug
    on Oct 21, 2026
  2. added a commit that references this issue on Oct 22, 2026
    65de6a9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    [C] Bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions