in a freshly cloned repository after tools setup, any task that ultimately calls reformat_without_preamble (most codegen) will execute rustfmt directly, which ignores the edition config in Cargo.toml, causing rustfmt to fail.
this means just ready and other suggested workflow tasks cannot be executed, and provide confusing errors - "only allowed in Rust 2024" despite "style_edition=2024" clearly visible.
it looks like there's an attempt to correct this by applying command-line flags equivalent to the rustfmt.toml config.
unfortunately the configured toolchain will refuse to handle let chains since rust-lang/rust#143214
Code of Conduct
in a freshly cloned repository after tools setup, any task that ultimately calls
reformat_without_preamble(most codegen) will executerustfmtdirectly, which ignores the edition config inCargo.toml, causingrustfmtto fail.this means
just readyand other suggested workflow tasks cannot be executed, and provide confusing errors - "only allowed in Rust 2024" despite "style_edition=2024" clearly visible.it looks like there's an attempt to correct this by applying command-line flags equivalent to the rustfmt.toml config.
unfortunately the configured toolchain will refuse to handle let chains since rust-lang/rust#143214
Code of Conduct