Skip to content

Conversation

@conomist
Copy link
Contributor

Removes an incorrect #[allow(dead_code)] attribute from the idx field in DictTrackerExecScope. This field is actively used and the suppression attribute was misleading.While reviewing code quality attributes, identified that DictTrackerExecScope::idx is incorrectly marked with #[allow(dead_code)]. The field is:Initialized in the constructor (new(), L25)Publicly accessed via get_dict_infos_index() (L72).This false suppression masks legitimate compiler warnings and misleads contributors about the field's usage.

@reviewable-StarkWare
Copy link

This change is Reviewable

Copy link
Collaborator

@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: 0 of 1 files reviewed, 1 unresolved discussion


crates/cairo-lang-runner/src/casm_run/dict_manager.rs line 11 at r1 (raw file):

    /// The data of the dictionary.
    data: HashMap<Felt252, MaybeRelocatable>,
    /// The index of the dictionary in the dict_infos segment.

why?

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.

3 participants