style: rustfmt loops.rs and stable_packed_accumulator.rs — main is red on cargo fmt --check - #9293
Conversation
… on cargo fmt --check) `cargo fmt --all -- --check` fails on pristine main (953a8bd): 6 hunks across `perry-codegen/src/stmt/loops.rs` and `perry-codegen/src/stmt/stable_packed_accumulator.rs`, from PerryTS#9274/PerryTS#9279. Reproduced on two machines with the pinned nightly toolchain. That gate is part of `lint`, so it is red on every open PR until this lands, and a check that is red on arrival teaches reviewers to ignore it — CLAUDE.md hazard 2. Pure `cargo fmt --all` output, no hand edits, no behaviour change. Claude-Session: https://claude.ai/code/session_01TE3JXAYXtdnKcLu8TCFWR6
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 8 included reviews per hour; 5 remain after this review. 📝 WalkthroughWalkthroughThe change reformats recursive accumulator checks and numeric accumulator collection calls in the code generator. It does not alter declarations, arguments, or behavior. ChangesNumeric accumulator cleanup
Estimated code review effort: 1 (Trivial) | ~2 minutes Merge Risk: ⚪ Minimal · up to This PR only reformats existing Rust code and restores the formatting check without changing behavior, interfaces, dependencies, or deployment behavior. No actionable merge-blocking risk remains after normal checks and review. Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Description checkExplanation The description clearly explains the formatting-only change, affected files, reason, and verification command. It does not use the repository template headings or include the checklist, but the key information is present.
✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
|
Merged — and this is my mess, not a drive-by. Thank you for catching it.
How I produced it, since the mechanism will recur. I have been batching PRs onto a shared branch, running Both files here are ones several of those batched PRs touched (#9274, #9279, #9288 among them), which is exactly why the drift landed there and nowhere else. The fix on my side is that the formatting has to be pushed to the PR whose code needs it, or the batch has to merge as the batch. I have been treating the train as a validation vehicle and the PR heads as the thing that ships, without noticing that fixes I applied to the former never reached the latter. Style-only, no behaviour change; |
cargo fmt --all -- --checkfails on pristinemain(953a8bdd90): 6 hunks acrosscrates/perry-codegen/src/stmt/loops.rsandcrates/perry-codegen/src/stmt/stable_packed_accumulator.rs, introduced by #9274/#9279. Reproduced independently on two machines with the pinned nightly toolchain.That check is part of the
lintjob, so it is currently red on every open PR, and a gate that is red on arrival is CLAUDE.md hazard 2 — it teaches reviewers to merge past red, and the next real lint failure lands invisibly behind it.This is pure
cargo fmt --alloutput. No hand edits, no behaviour change.cargo fmt --all -- --checkis clean afterwards.Found while verifying an unrelated runtime change (#9291), which does not touch either file.
Summary by CodeRabbit