cargo fmt --all drifts across 35 files (21 already touched by open PRs) — please format main directly, not in a PR #409

Open
opened 2026-12-04 01:38:21 +00:00 by github-bot · 0 comments
Owner

@⁠Luxuride on GitHub · 2026-12-04 01:33 UTC · original

rustfmt.toml exists, but the tree has never been formatted with it:

$ cargo fmt --all --check; echo $?
… 145 hunks …
1

That is 145 diffs across 35 files — all line-wrapping around the 100-column limit, no semantic changes:

area files
crates/victory-gpu 21
crates/victory-shader 9
crates/victory-loader 3
crates/victory-hle 1
apps/victory 1

Reproduce from the repo root:

cargo fmt --all --check

Spectrum: (the diff is mostly one statement per long line)

-    if ["LSFGVK_PROFILE", "LSFG_PROCESS"].iter().any(|k| std::env::var_os(k).is_some()) {
+    if ["LSFGVK_PROFILE", "LSFG_PROCESS"]
+        .iter()
+        .any(|k| std::env::var_os(k).is_some())
+    {

Why not a PR: 21 of those 35 files are already touched by open PRs (including victory-gpu/{frame,list,queue,resource,host,descriptor}, victory-shader::emit, loader::crash, apps/victory/src/run.rs, victory-hle). A 145-hunk formatting PR would conflict with most of the open queue on the first merge, need rebasing after every one, and cannot be reviewed line by line anyway — a formatting PR goes stale faster than it can be merged.

Proposal: run cargo fmt --all directly on main, as one commit, when the queue is quiet, and skip review since it is mechanical:

cargo fmt --all
git commit -am "chore: cargo fmt --all"

To keep it from drifting again, add cargo fmt --all --check to CI. There are no tracked .github/workflows, and .githooks/pre-commit only runs cargo xtask policy --staged, so nothing currently enforces formatting.

Overlap check: searched open and closed issues and PRs for fmt, format, formatting, rustfmt — no issue or PR currently proposes this. I deliberately did not open a formatting PR.

If you would rather not run it locally, say so and I will push a single chore: cargo fmt --all commit straight to a fork branch for you to merge (no review, no rebase loop) — but doing it on main yourself avoids the conflict window entirely.

**@⁠Luxuride** on GitHub · 2026-12-04 01:33 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/409) `rustfmt.toml` exists, but the tree has never been formatted with it: ``` $ cargo fmt --all --check; echo $? … 145 hunks … 1 ``` That is **145 diffs across 35 files** — all line-wrapping around the 100-column limit, no semantic changes: | area | files | | --- | --- | | `crates/victory-gpu` | 21 | | `crates/victory-shader` | 9 | | `crates/victory-loader` | 3 | | `crates/victory-hle` | 1 | | `apps/victory` | 1 | Reproduce from the repo root: ``` cargo fmt --all --check ``` Spectrum: (the diff is mostly one statement per long line) ```diff - if ["LSFGVK_PROFILE", "LSFG_PROCESS"].iter().any(|k| std::env::var_os(k).is_some()) { + if ["LSFGVK_PROFILE", "LSFG_PROCESS"] + .iter() + .any(|k| std::env::var_os(k).is_some()) + { ``` **Why not a PR:** 21 of those 35 files are already touched by open PRs (including `victory-gpu/{frame,list,queue,resource,host,descriptor}`, `victory-shader::emit`, `loader::crash`, `apps/victory/src/run.rs`, `victory-hle`). A 145-hunk formatting PR would conflict with most of the open queue on the first merge, need rebasing after every one, and cannot be reviewed line by line anyway — a formatting PR goes stale faster than it can be merged. **Proposal:** run `cargo fmt --all` **directly on `main`**, as one commit, when the queue is quiet, and skip review since it is mechanical: ``` cargo fmt --all git commit -am "chore: cargo fmt --all" ``` To keep it from drifting again, add `cargo fmt --all --check` to CI. There are no tracked `.github/workflows`, and `.githooks/pre-commit` only runs `cargo xtask policy --staged`, so nothing currently enforces formatting. **Overlap check:** searched open and closed issues and PRs for `fmt`, `format`, `formatting`, `rustfmt` — no issue or PR currently proposes this. I deliberately did not open a formatting PR. If you would rather not run it locally, say so and I will push a single `chore: cargo fmt --all` commit straight to a fork branch for you to merge (no review, no rebase loop) — but doing it on `main` yourself avoids the conflict window entirely.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-04 01:38:21 +00:00
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/lobomfz--VIctory-xmem#409
No description provided.