Repository navigation
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
Open
marcin-koziol wants to merge 1 commit into
marcin-koziol wants to merge 1 commit into
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
CI installs the newest stable Rust (
dtolnay/rust-toolchain@stable), which became 1.100 a few days ago. Its rustfmt (1.11) splits eachdefine_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 incrates/faderframe-core/src/id.rs; nothing else in the workspace changes.What
id.rsis formatted the way rustfmt 1.11 lays it out. This is a whitespace-only change.Checked
cargo fmt --all -- --checkis clean.--checkis clean with both versions.#![rustfmt::skip::macros(define_id)]) would need an unstable inner attribute, so it is not an option.🤖 Generated with Claude Code