Skip to content

style/refactor: unbreak the lint gate on main (cargo fmt after #4853 + body_stmt.rs file-size split)#4855

Merged
proggeramlug merged 2 commits into
mainfrom
fmt-post-4853
Jun 9, 2026
Merged

style/refactor: unbreak the lint gate on main (cargo fmt after #4853 + body_stmt.rs file-size split)#4855
proggeramlug merged 2 commits into
mainfrom
fmt-post-4853

Conversation

@proggeramlug

@proggeramlug proggeramlug commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

The required lint check currently fails on every PR's merge ref, for two independent reasons introduced by recent merges:

  1. cargo fmt --all -- --check: fix(runtime): class subclass + async-method + definition test262 tail #4853 landed with formatting that the current stable rustfmt (1.9.0 / rustc 1.96.0, what CI's dtolnay/rust-toolchain@stable installs) rejects — 4 files (runtime_decls/objects.rs, closure/mod.rs, object/class_registry.rs, object/descriptors.rs). Commit 1 is pure cargo fmt --all output.
  2. File-size gate: crates/perry-hir/src/lower_decl/body_stmt.rs is at 2038 lines on main (limit 2000). Commit 2 moves the self-contained for-await/for-of head-expression detection predicates (ReadableStream / Node Readable / readline / fs.Dir) + the IteratorClose helpers into body_stmt/detect.rs, following the existing body_stmt/for_await.rs split pattern — pure code motion, no behavior change; body_stmt.rs → 1826 lines.

First seen on the wt-clm-parity PR run at 18:51Z, then on #4854 — both fail only lint, with diffs exclusively in files those PRs don't touch. Verified locally: cargo fmt --all -- --check + ./scripts/check_file_size.sh + cargo test -p perry-hir all green.

Once this merges, re-running lint on open PRs (or rebasing them) goes green.

No version bump / changelog (style/refactor-only; happy to drop if you'd rather fold into your next admin push).

#4853 merged with formatting that the current stable rustfmt
(1.9.0 / rustc 1.96.0, what CI's dtolnay/rust-toolchain@stable
installs) rejects, so the required 'lint' check now fails on every
PR's merge ref regardless of its content (first seen on wt-clm-parity
at 18:51Z, then worktree-fix-4851/#4854). Formatting-only change,
no code edits.
…tmt.rs (file-size gate)

body_stmt.rs hit 2038 lines on main (limit 2000), so the lint job's
file-size gate fails every PR even after the fmt fix. Move the
self-contained for-await/for-of head-expression detection predicates
(ReadableStream / Node Readable / readline / fs.Dir) plus the
IteratorClose helpers into body_stmt/detect.rs, following the existing
body_stmt/for_await.rs split pattern. Pure code motion, no behavior
change; body_stmt.rs is now 1826 lines.
@proggeramlug proggeramlug changed the title style: cargo fmt --all after #4853 (unblocks lint on every PR) style/refactor: unbreak the lint gate on main (cargo fmt after #4853 + body_stmt.rs file-size split) Jun 9, 2026
@proggeramlug proggeramlug merged commit d97bc36 into main Jun 9, 2026
13 checks passed
@proggeramlug proggeramlug deleted the fmt-post-4853 branch June 9, 2026 20:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant