Skip to content

Commit 4bfa1dd

Browse files
committed
rustfmt: don't nightly-gate the stable --style-edition flag
1 parent 7e7282e commit 4bfa1dd

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/tools/rustfmt/src/bin/main.rs

+7-6
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,13 @@ fn make_opts() -> Options {
162162
"[key1=val1,key2=val2...]",
163163
);
164164

165+
opts.optopt(
166+
"",
167+
"style-edition",
168+
"The edition of the Style Guide (unstable).",
169+
"[2015|2018|2021|2024]",
170+
);
171+
165172
if is_nightly {
166173
opts.optflag(
167174
"",
@@ -186,12 +193,6 @@ fn make_opts() -> Options {
186193
"skip-children",
187194
"Don't reformat child modules (unstable).",
188195
);
189-
opts.optopt(
190-
"",
191-
"style-edition",
192-
"The edition of the Style Guide (unstable).",
193-
"[2015|2018|2021|2024]",
194-
);
195196
}
196197

197198
opts.optflag("v", "verbose", "Print verbose output");

0 commit comments

Comments
 (0)