about summary refs log tree commit diff
diff options
context:
space:
mode:
author许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com>2025-01-07 20:49:29 +0800
committer许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com>2025-01-07 20:49:29 +0800
commitb77eb96baad4ad5c90cce09e4d649e8974d445c8 (patch)
treefc22b146cd7818086094aea8c32e56b1bcdb2112
parentfb546ee09b226bc4dd4b712d35a372d923c4fa54 (diff)
downloadrust-b77eb96baad4ad5c90cce09e4d649e8974d445c8.tar.gz
rust-b77eb96baad4ad5c90cce09e4d649e8974d445c8.zip
rustfmt: drop nightly-gating of the `--style-edition` flag registration
-rw-r--r--src/tools/rustfmt/src/bin/main.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/tools/rustfmt/src/bin/main.rs b/src/tools/rustfmt/src/bin/main.rs
index 4078484ff10..34984798ae6 100644
--- a/src/tools/rustfmt/src/bin/main.rs
+++ b/src/tools/rustfmt/src/bin/main.rs
@@ -161,6 +161,12 @@ fn make_opts() -> Options {
         "Set options from command line. These settings take priority over .rustfmt.toml",
         "[key1=val1,key2=val2...]",
     );
+    opts.optopt(
+        "",
+        "style-edition",
+        "The edition of the Style Guide.",
+        "[2015|2018|2021|2024]",
+    );
 
     if is_nightly {
         opts.optflag(
@@ -186,12 +192,6 @@ fn make_opts() -> Options {
             "skip-children",
             "Don't reformat child modules (unstable).",
         );
-        opts.optopt(
-            "",
-            "style-edition",
-            "The edition of the Style Guide (unstable).",
-            "[2015|2018|2021|2024]",
-        );
     }
 
     opts.optflag("v", "verbose", "Print verbose output");