Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: compilation panic: cairo-lang-lowering IndexMap: key not found #7095

Open
MagisterDallis opened this issue Jan 15, 2025 · 0 comments · May be fixed by #7112
Open

bug: compilation panic: cairo-lang-lowering IndexMap: key not found #7095

MagisterDallis opened this issue Jan 15, 2025 · 0 comments · May be fixed by #7112
Labels
bug Something isn't working

Comments

@MagisterDallis
Copy link
Contributor

Bug Report

3e611b5
Cairo version:

Current behavior:
With the changes made in #7094, the code no longer compiles, and panics instead of succeeding (or failing) compilation.
I'm unsure what exactly causes the bug - will try to give a MRE when I can.

related code:

    #[inline]
    fn count<+Destruct<T>, +Destruct<Self::Item>>(
        self: T,
    ) -> usize {
        let mut self = self;
        Self::fold(ref self, 0_usize, |count, _x| {
            count + 1
        })
    }

panic trace:

thread '<unnamed>' panicked at crates/cairo-lang-lowering/src/db.rs:399:47:
IndexMap: key not found
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread 'main' panicked at crates/cairo-lang-lowering/src/db.rs:399:47:
IndexMap: key not found
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant