Closed
Description
Hello from the Rust project 👋
I use Emacs 30.1 and rust-mode 20250609.1420 (0d5d54a) from MELPA. I was working on the triagebot
and got a CI failure due to rustfmt behaving differently on my local workstation. The triagebot
has a local rustfmt.toml formatting to --edition=2018
. rust-mode now defaults to edition 2024 (was changed in #567).
I expected to see this happen: The local rustfmt.toml should have precedence over rust-mode default
Instead, this happened: the rustfmt.toml seems to be ignored
Here is a small sample that formats differently according to the edition.
// (setq rust-rustfmt-switches '("--edition" "2024"))
// (setq rust-rustfmt-switches '("--edition" "2018"))
use anyhow::{Context, anyhow};
Am I perhaps missing anything?
Thanks!
Metadata
Metadata
Assignees
Labels
No labels