Skip to content

Warning about unsupported caller_location intrinsic #2010

Closed

Description

@zhassan-aws

Kani almost always emits the following annoying warning on any program:

warning: Found the following unsupported constructs:
             - caller_location (1)
         
         Verification will fail if one or more of these constructs is reachable.
         See https://model-checking.github.io/kani/rust-feature-support.html for more details.

warning: 1 warning emitted

for example, on this tiny program:

#[kani::proof]
fn main() {
    let _x: bool = kani::any();
}

using the following command line invocation:

kani test.rs

with Kani version: f4796ea

It's not clear what the source of this intrinsic is, so it might be worth investigating if this is coming from codegen itself.

Activity

  1. added
    [C] Bug
    on Dec 16, 2022
  2. zhassan-aws commented on Dec 22, 2022

    @zhassan-aws
    ContributorAuthor

    This still occurs on programs involving panic!, e.g:

    #[kani::proof]
    fn main() {
        panic!("Some message");
    }
    $ kani simp_panic.rs 
    warning: Found the following unsupported constructs:
                 - caller_location (1)
             
             Verification will fail if one or more of these constructs is reachable.
             See https://model-checking.github.io/kani/rust-feature-support.html for more details.
    
    warning: 1 warning emitted
    
    Checking harness main...
    ...
    

    Reopening.

  3. self-assigned this
    on Dec 22, 2022
  4. removed their assignment
    on Jan 12, 2026
  5. added theissue type on Apr 1, 2026
  6. feliperodri commented on Apr 1, 2026

    @feliperodri
    Member

    caller_location is now handled in kani-compiler/src/intrinsics.rs:229. Running kani on panic!("test") produces no caller_location warning. The intrinsic was implemented.

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

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions