Skip to content

CI Format fails on Rust 1.100: format id.rs the way the new rustfmt lays out define_id! - #85

Open
marcin-koziol wants to merge 1 commit into
BurningTreeC:mainfrom
marcin-koziol:rustfmt-1-100
Open

marcin-koziol wants to merge 1 commit into
BurningTreeC:mainfrom
marcin-koziol:rustfmt-1-100

Conversation

@marcin-koziol

Copy link
Copy Markdown

Why

CI installs the newest stable Rust (dtolnay/rust-toolchain@stable), which became 1.100 a few days ago. Its rustfmt (1.11) splits each define_id!(Name, "prefix") call's name and prefix onto separate lines, so the Format step (cargo fmt --all -- --check) now fails. All 30 differences are in crates/faderframe-core/src/id.rs; nothing else in the workspace changes.

What

id.rs is formatted the way rustfmt 1.11 lays it out. This is a whitespace-only change.

Checked

  • rustfmt 1.11 (Rust 1.100.0): cargo fmt --all -- --check is clean.
  • rustfmt 1.10 (Rust 1.99.1): it accepts the new layout too, so --check is clean with both versions.
  • Skipping the macro in rustfmt instead (#![rustfmt::skip::macros(define_id)]) would need an unstable inner attribute, so it is not an option.

🤖 Generated with Claude Code

CI installs the newest stable Rust; since 1.100 its rustfmt puts a
define_id! call's name and prefix on lines of their own, and the Format
step failed on this file alone (30 calls). The new layout is accepted by
the previous rustfmt as well, so both pass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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.

2 participants