-
Notifications
You must be signed in to change notification settings - Fork 739
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working