Repository navigation
fix(id): make treefmt pass on main — escape gen as r#gen in benchmarks, format drifted files - #11175
Conversation
…s and format drifted files (#10462)
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 32 minutes. View limit details
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. |
Summary
Fixes one of the still-red checks from #10462 at current main: treefmt-check.
Verified at main
8722d2ea00(task 20619's per-check pass):nix build .#checks.x86_64-linux.treefmt-checkfailed for two reasons:rustfmt --edition 2024over every.rsfile, but the standalonepkgs/id/benchmarkscrate is edition 2021 and usedgenas a plain identifier — a reserved keyword in edition 2024 — inbenchmarks/src/lib.rs,benchmarks/src/adapters/d1.rs, andbenchmarks/src/adapters/redb.rs. rustfmt could not parse those files at all ("expected expression, found reserved keywordgen"), which failed the whole check.benchmarks/tests/{d1_adapter,redb_adapter,workload_oracle}.rs(import order),benchmarks/result-v1.schema.json, andhosted-worker/src/currency/{crypto,relay}.ts(from the currency gateway landing, poc(id): currency gateway boundary — UserDO snapshot cache, signed transfer + hold, idempotent retry (#2298) #9803).Change
r#genin the three benchmarks source files (valid in both editions, semantics unchanged — no logic, string, or fixture-path changes).--edition 2024, biomeformat --write) over the drifted files. Every other hunk is formatter output only.Verification
nix build .#checks.x86_64-linux.treefmt-check— PASS on this branch (was FAIL at8722d2ea00).cargo testinpkgs/id/benchmarks(standalone crate) — cannot run: the crate does not compile at the base sha for a pre-existing, unrelated reason (E0428,adaptersmodule defined twice insrc/lib.rs, introduced by PR id benchmarks: D1 workload adapter and native counters (C9133-02-D1) #11142; filed as issue id benchmarks: standalone crate does not compile — adapters module defined twice in lib.rs (E0428) #11178 with a queued fix packet). The rename in this PR is verified by rustfmt parsing and formatting all three files under edition 2024 (previously a hard parse error) and by the treefmt-check pass above; the raw-identifier escape is semantics-preserving.actor.rsonly (split tracked in id: split pkgs/id/src/world/actor.rs (2,525 production lines) — remove the F11.10 line-guard grandfather entry #8592).Queue: task 20619 (lane any-p).