Skip to content

Bug: assertion failed: x.index() < self.len() #1073

@antoyo

Description

@antoyo

Code snippet to reproduce the bug:

use same_file::is_same_file;

fn main() {
    println!("{:?}", is_same_file("a", "a"));
}
[package]
name = "charon-test2"
version = "0.1.0"
edition = "2024"

[dependencies]
same-file = "1.0.6"

Charon version: c84b66a

Charon command: charon cargo --extract-opaque-bodies

Charon output:

logs.txt

Any other steps needed to reproduce: n/a

Explain the bug: Charon should not panic

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugA bug in charon

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions