about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbjorn3 <17426603+bjorn3@users.noreply.github.com>2025-04-01 14:12:30 +0000
committerbjorn3 <17426603+bjorn3@users.noreply.github.com>2025-04-01 14:49:15 +0000
commita2f29439bf0fbf9823cf99cee61254875379e2c4 (patch)
tree3ed64ccadbe01f5bbbf1329a5272a8edf0f1fc90
parentf922e74f71371abe3eceda4a131c4d0137591548 (diff)
downloadrust-a2f29439bf0fbf9823cf99cee61254875379e2c4.tar.gz
rust-a2f29439bf0fbf9823cf99cee61254875379e2c4.zip
Use the 2024 edition in ./x.py fmt
-rw-r--r--src/bootstrap/src/core/build_steps/format.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bootstrap/src/core/build_steps/format.rs b/src/bootstrap/src/core/build_steps/format.rs
index 7aa5cb2b6e5..b1a97bde97b 100644
--- a/src/bootstrap/src/core/build_steps/format.rs
+++ b/src/bootstrap/src/core/build_steps/format.rs
@@ -31,7 +31,7 @@ fn rustfmt(
     // Avoid the submodule config paths from coming into play. We only allow a single global config
     // for the workspace for now.
     cmd.arg("--config-path").arg(src.canonicalize().unwrap());
-    cmd.arg("--edition").arg("2021");
+    cmd.arg("--edition").arg("2024");
     cmd.arg("--unstable-features");
     cmd.arg("--skip-children");
     if check {