fix(derive): separate value metadata from parsing - #1054
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Central YAML (base), Organization UI (inherited) Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Instruction counts
No instruction-count regression above 1%. Only instruction counts gate. Wall clock is shown for context — on identical hardware it moves 4-20% run to run. Measured by tak — instruction-counted CLI benchmarks, stored in this repository's git notes. Shadow comparisonParsing
|
faba255 to
d84c11a
Compare
eadb8dc to
5ff8b94
Compare
5ff8b94 to
2dec7c1
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 1334ea7. Configure here.
1334ea7 to
704bc20
Compare

Stack created with GitHub Stacks CLI • Give Feedback 💬
Note
Medium Risk
Behavior changes for enums that relied on derived
FromStrwithout an explicit impl (compile failures until fixed); cfg-aware duplicate detection is heuristic and could mis-allow or mis-reject edge cases.Overview
ValueEnumis metadata-only. The derive no longer emitsimpl FromStr; types must supply their own parser, like other typed fields. Help, completions, and choice checks still read the staticCHOICES/ alias tables from theValueEnumtrait impl.Cfg-gated variants are allowed. Variant
cfg/cfg_attrgates are copied onto static table entries instead of being rejected, and duplicate CLI words are permitted when the variants’ cfg predicates are disjoint (e.g.#[cfg(windows)]vs#[cfg(not(windows))]).Call sites and tests add hand-written
FromStrimplementations (lint’sOutputFormat, conformanceInterpreter, facadeShell, etc.). PLAN.md marks the fleet launch-gate item for ValueEnum + domain parsing as done.Reviewed by Cursor Bugbot for commit 704bc20. Bugbot is set up for automated code reviews on this repo. Configure here.