-
Notifications
You must be signed in to change notification settings - Fork 598
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
Invalidate snapped_semantics. #7272
Conversation
without the fix Suggestion:
|
cc798ae
to
e47ce29
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 3 files at r1.
Reviewable status: 1 of 3 files reviewed, 2 unresolved discussions (waiting on @TomerStarkware)
crates/cairo-lang-lowering/src/lower/mod.rs
line 1482 at r1 (raw file):
.add(ctx, &mut builder.statements); builder.update_ref(ctx, snapshot_param, original); builder.update_snap_ref(snapshot_param, snapped);
add doc about the ordering of these lines.
Code quote:
builder.update_snap_ref(snapshot_param, snapped);
crates/cairo-lang-lowering/src/lower/block_builder.rs
line 106 at r1 (raw file):
self.changed_member_paths.insert(member_path); }
Suggestion:
self.changed_member_paths.insert(member_path);
}
e47ce29
to
821cad3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 1 of 3 files reviewed, 2 unresolved discussions (waiting on @orizi and @TomerStarkware)
crates/cairo-lang-lowering/src/lower/mod.rs
line 1482 at r1 (raw file):
Previously, orizi wrote…
add doc about the ordering of these lines.
Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 2 files at r2, all commit messages.
Reviewable status: 2 of 3 files reviewed, 1 unresolved discussion (waiting on @TomerStarkware)
crates/cairo-lang-lowering/src/lower/mod.rs
line 1521 at r3 (raw file):
// TODO(TomerStaskware): make sure this is unreachable and remove // `MemberPathLoop` diagnostic. LoweringFlowError::Failed(ctx.diagnostics.report(stable_ptr, MemberPathLoop))
How's this related?
Previously, orizi wrote…
the error location was kind of useless without this fix. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 1 files at r3.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @TomerStarkware)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 1 files at r3, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @ilyalesokhin-starkware)
crates/cairo-lang-lowering/src/test_data/snapshot
line 249 at r3 (raw file):
} clear_scores(ref array1);
array.pop_front().unwrap();
is enough
or even array1 = array![]
Code quote:
clear_scores(ref array1);
821cad3
to
b295fd8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @TomerStarkware)
crates/cairo-lang-lowering/src/test_data/snapshot
line 249 at r3 (raw file):
Previously, TomerStarkware wrote…
array.pop_front().unwrap();
is enough
or even array1 = array![]
Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 1 files at r4, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @TomerStarkware)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status:
complete! all files reviewed, all discussions resolved (waiting on @ilyalesokhin-starkware)
No description provided.