software-mansion / software-mansion/cairo-annotations

Implent `try_from_debug_info_mut`

Open
#45 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Rust
Stars
5
Forks
1
PR merge metrics
No merged PRs in 30d

Description

When we implement a function with the following signature:
fn try_from_debug_info_mut(sierra_debug_info: &mut DebugInfo) -> Result<Self, Self::Error>;
we could remove elements from the underlying hashmap and take ownership of them when deserialized, thus eliminating the need for cloning.

However, this would result in the function no longer being idempotent.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the existing conversion from DebugInfo and the definition or callers of try_from_debug_info_mut. Read how cloning and repeated conversion are currently handled, then determine the ownership and idempotence requirements; done means the proposed function behavior is documented and verified against those requirements.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.