You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Apply target filtering to payload variant declarations #477
bugA problem that causes incorrect behavior or crashes.cross-platformIssues related to making Wave work seamlessly across multiple operating systems.good first issueIssues that are good for newcomers or first-time contributors.needs testingIssues that require additional testing or verification.
#[target(...)] filtering does not recognize variant as a declaration that can be skipped. An inactive variant leaves its body tokens at top level and causes a parse error.
Checking this on Linux with current master plus PR #474 fails on Value even though the entire declaration is inactive. front/parser/src/import.rs has a declaration-kind list for target filtering, but variant is missing from it.
This breaks cross-target source portability and should be fixed before alpha.
Scope
Add variant to declaration-level target filtering.
Audit the list against every supported top-level declaration kind.
Add positive and negative tests for inactive and active payload variants.
Cover imported files as well as the root source.
Acceptance criteria
The reproducer checks on Linux without exposing the inactive variant body.
The same declaration remains available and fully validated on a matching Windows target.
Every top-level declaration kind has target-filter regression coverage.
bugA problem that causes incorrect behavior or crashes.cross-platformIssues related to making Wave work seamlessly across multiple operating systems.good first issueIssues that are good for newcomers or first-time contributors.needs testingIssues that require additional testing or verification.
Activity