pc2 / pc2/sus-compiler

Reject `LatencyOffset` in `when` statements

Open
#180 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement lint
Dominant language
Rust
Stars
126
Forks
6
PR merge metrics
No merged PRs in 30d

Description

In my experience, whenever a LatencyOffset is used in a when, it is always an error. Reject it to spare others this pain.

Contributor guide

Open the contributing guide

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

No files or tests are named. Start by locating the compiler handling for LatencyOffset expressions and when statements, then run the relevant existing compiler tests. Done means a when statement containing LatencyOffset is rejected with an appropriate diagnostic, while other when statements continue to work.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.