Skip to content

Conversation

orizi
Copy link
Collaborator

@orizi orizi commented Sep 11, 2025

No description provided.

@reviewable-StarkWare
Copy link

This change is Reviewable

@orizi orizi force-pushed the gt/orizi/09-11-refactor_semantic_made_enum_more_encapsulated branch from 911e08d to 73fed59 Compare September 14, 2025 07:32
@orizi orizi force-pushed the graphite-base/8390 branch from e3d6aba to 2b9c280 Compare September 14, 2025 07:32
@orizi orizi changed the base branch from graphite-base/8390 to main September 14, 2025 07:32
Copy link
Contributor

@eytan-starkware eytan-starkware left a comment

Choose a reason for hiding this comment

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

When you remove the sub-queries you change the calculations of "Has my input changed" (mostly affects LSP performance I assume). It might be better to make EnumDeclerationData / EnumDefinitionData tracked structs

@eytan-starkware reviewed 2 of 3 files at r1, all commit messages.
Reviewable status: 2 of 3 files reviewed, all discussions resolved (waiting on @TomerStarkware)

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.

can't unfortunately - as it requires implementing Hash for basic elements that probably can't really implement hash.

Reviewable status: 2 of 3 files reviewed, all discussions resolved (waiting on @TomerStarkware)

Copy link
Contributor

@eytan-starkware eytan-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:

@eytan-starkware reviewed 1 of 3 files at r1.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @TomerStarkware)

@orizi orizi added this pull request to the merge queue Sep 14, 2025
Copy link
Collaborator

@TomerStarkware TomerStarkware left a comment

Choose a reason for hiding this comment

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

:lgtm:

@TomerStarkware reviewed all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @orizi)


crates/cairo-lang-semantic/src/items/enm.rs line 43 at r1 (raw file):

/// Returns the declaration data of an enum.
#[salsa::tracked(returns(ref))]

consider add a wrapper helper function to return as ref once

Code quote:

#[salsa::tracked(returns(ref))]

@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Sep 14, 2025
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: all files reviewed, 1 unresolved discussion (waiting on @TomerStarkware)


crates/cairo-lang-semantic/src/items/enm.rs line 43 at r1 (raw file):

Previously, TomerStarkware wrote…

consider add a wrapper helper function to return as ref once

Rather not - too much function multiplicity as it is.

@orizi orizi added this pull request to the merge queue Sep 14, 2025
Merged via the queue into main with commit fe5e560 Sep 14, 2025
100 checks passed
@orizi orizi deleted the gt/orizi/09-11-refactor_semantic_made_enum_more_encapsulated branch September 14, 2025 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants