refactor(derive): remove variant run_async state - #1224
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Central YAML (base), Organization UI (inherited) Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 4 included reviews per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe change removes stored per-variant ChangesVariant async dispatch validation
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to This localized derive refactor rejects redundant variant-level configuration earlier while preserving enum-level dispatch behavior; no actionable merge-blocking risk remains beyond normal checks and review. Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
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
|
Summary
run_asyncwhile parsing the attributerun_asyncdispatch behaviorTesting
cargo test --all --all-featuresNote
Low Risk
Derive-only refactor of a redundant diagnostic path; no runtime or dispatch behavior change.
Overview
Stops carrying a private
run_asyncflag on enum variants. Redundant#[usage(run_async)]on a variant is now rejected while parsing the attribute, with the same diagnostic as before.Downstream validation no longer checks that stored flag. Enum-level
run_async/run_async_withdispatch is unchanged.Reviewed by Cursor Bugbot for commit ef4093d. Bugbot is set up for automated code reviews on this repo. Configure here.
Summary by CodeRabbit
run.