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

Added destructors in cycle detectors. #5335

Merged
merged 1 commit into from
Mar 28, 2024
Merged

Added destructors in cycle detectors. #5335

merged 1 commit into from
Mar 28, 2024

Conversation

orizi
Copy link
Collaborator

@orizi orizi commented Mar 27, 2024

This change is Reviewable

@ilyalesokhin-starkware
Copy link
Contributor

crates/cairo-lang-lowering/src/borrow_check/mod.rs line 33 at r1 (raw file):

    success: Maybe<()>,
    block_extra_calls: OrderedHashMap<BlockId, Vec<FunctionId>>,
    destruct_fn: TraitFunctionId,

Suggestion:

destruct_trait

Copy link
Contributor

@ilyalesokhin-starkware ilyalesokhin-starkware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 2 of 8 files at r1, all commit messages.
Reviewable status: 2 of 8 files reviewed, 1 unresolved discussion (waiting on @orizi)

@ilyalesokhin-starkware
Copy link
Contributor

crates/cairo-lang-lowering/src/borrow_check/mod.rs line 158 at r1 (raw file):

                            &[
                                (panic_demand, Some(DropPosition::Panic(stmt.location))),
                                (info.clone(), Some(DropPosition::Panic(stmt.location))),

what happend to this?

Code quote:

info.clone(), Some(DropPosition::Panic(stmt.location)

@orizi orizi force-pushed the orizi/destructor-cycles branch from bc30dc1 to 31b0ed5 Compare March 28, 2024 08:15
Copy link
Collaborator Author

@orizi orizi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: 2 of 8 files reviewed, 2 unresolved discussions (waiting on @ilyalesokhin-starkware)


crates/cairo-lang-lowering/src/borrow_check/mod.rs line 33 at r1 (raw file):

    success: Maybe<()>,
    block_extra_calls: OrderedHashMap<BlockId, Vec<FunctionId>>,
    destruct_fn: TraitFunctionId,

it is the fn id - not the trait.


crates/cairo-lang-lowering/src/borrow_check/mod.rs line 158 at r1 (raw file):

Previously, ilyalesokhin-starkware wrote…

what happend to this?

the location became larger - so i extract it to a variable.

Copy link
Contributor

@ilyalesokhin-starkware ilyalesokhin-starkware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 1 of 8 files at r1, 8 of 8 files at r2, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @orizi)

@orizi orizi force-pushed the orizi/destructor-cycles branch from 31b0ed5 to f9b1741 Compare March 28, 2024 08:43
@orizi orizi enabled auto-merge March 28, 2024 08:43
@orizi orizi added this pull request to the merge queue Mar 28, 2024
Merged via the queue into main with commit 7bad82d Mar 28, 2024
42 of 43 checks passed
@orizi orizi deleted the orizi/destructor-cycles branch April 17, 2024 16:26
shramee pushed a commit to shramee/cairo that referenced this pull request Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants