ava-labs / ava-labs/reforge

Replace (span.lo().0 - start_pos.0) everywhere

Open
#24 0 comments 0 reactions 0 assignees View on GitHub
enhancement good first issue
Dominant language
Rust
Stars
0
Forks
1
Avg merge
10d 6h
Merged PRs (30d)
4

Description

Solar provides methods for this; those should be used instead. See the `impl_pos!` macro or the `SourceFile::relative_position` method.

Contributor guide

Open the contributing guide

Research direction

Search the repository for `(span.lo().0 - start_pos.0)` and inspect the `impl_pos!` macro and `SourceFile::relative_position` method as the replacement references. Replace each occurrence with the applicable Solar-provided method, then verify that no instances remain and that the existing behavior is preserved.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
compilers
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.