mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-05 03:38:29 +00:00
rustfmt: drop nightly-gating of the --style-edition
flag registration
This commit is contained in:
parent
fb546ee09b
commit
b77eb96baa
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user