Skip to content

Commit

Permalink
Rename PanicDestruct impl in tests. (#6228)
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyalesokhin-starkware authored Aug 19, 2024
1 parent 6e5f2d6 commit de9af0a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ foo
//! > module_code
struct PanicDestructable {}

impl PanicDestructForDestruct of PanicDestruct<PanicDestructable> {
impl MyPanicDesruct of PanicDestruct<PanicDestructable> {
fn panic_destruct(self: PanicDestructable, ref panic: Panic) nopanic {
let PanicDestructable { } = self;
}
Expand Down
4 changes: 2 additions & 2 deletions crates/cairo-lang-lowering/src/lower/test_data/closure
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ foo
//! > module_code
struct PanicDestructable {}

impl PanicDestructForDestruct of PanicDestruct<PanicDestructable> {
impl MyPanicDesruct of PanicDestruct<PanicDestructable> {
// Disable inlining to see the panic_destruct call in the lowering output.
#[inline(never)]
fn panic_destruct(self: PanicDestructable, ref panic: Panic) nopanic {
Expand Down Expand Up @@ -164,6 +164,6 @@ Parameters: v0: {closure@lib.cairo:11:5: 11:7}, v1: core::panics::Panic
blk0 (root):
Statements:
(v2: test::PanicDestructable) <- struct_destructure(v0)
(v3: core::panics::Panic) <- test::PanicDestructForDestruct::panic_destruct(v2, v1)
(v3: core::panics::Panic) <- test::MyPanicDesruct::panic_destruct(v2, v1)
End:
Return(v3)

0 comments on commit de9af0a

Please sign in to comment.