branch: elpa/rust-mode
commit 25d91cff281909e9b7cb84e31211c4e7b0480f94
Merge: 9041d43013 212bb63123
Author: Jen-Chieh Shen <jcs090...@gmail.com>
Commit: GitHub <nore...@github.com>

    Merge pull request #567 from eval-exec/exec/upgrade-rust-2024
    
    Upgrade rustfmt edition to 2024
---
 Changelog.md    | 1 +
 rust-rustfmt.el | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/Changelog.md b/Changelog.md
index cadbbf5b0e..bea46dbd30 100644
--- a/Changelog.md
+++ b/Changelog.md
@@ -1,5 +1,6 @@
 # Unreleased
 
+- Update rustfmt's defaults to use 2024 edition 
([#566](https://github.com/rust-lang/rust-mode/issues/509)).
 - Update rustfmt's defaults to use 2021 edition 
([#554](https://github.com/rust-lang/rust-mode/issues/509)).
 - Introduce `rust-format-mode` for `rust-format-buffer` 
([#556](https://github.com/rust-lang/rust-mode/pull/556)).
 
diff --git a/rust-rustfmt.el b/rust-rustfmt.el
index 04dce459cd..6fb0e8796a 100644
--- a/rust-rustfmt.el
+++ b/rust-rustfmt.el
@@ -33,7 +33,7 @@
   :type 'string
   :group 'rust-mode)
 
-(defcustom rust-rustfmt-switches '("--edition" "2021")
+(defcustom rust-rustfmt-switches '("--edition" "2024")
   "Arguments to pass when invoking the `rustfmt' executable."
   :type '(repeat string)
   :group 'rust-mode)

Reply via email to