Skip to content

Commit aa55ad6

Browse files
committed
Explicitly state that style_edition overrides the edition
1 parent 474de49 commit aa55ad6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

text/0000-style-evolution.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,10 @@ However, when transitioning between editions, projects may want to separately
4747
make and commit the changes for 1) transitioning to a new Rust edition and 2)
4848
transitioning to a new style edition. To allow for this, `rustfmt` also allows
4949
configuring the style edition directly, via a separate `style_edition`
50-
configuration option, or `--style-edition` command-line option.
50+
configuration option, or `--style-edition` command-line option. `style_edition`
51+
or `--style-edition`, if set, always overrides `edition` or `--edition` for the
52+
purposes of styling, though `edition` or `--edition` still determines the
53+
edition for the purposes of parsing Rust code.
5154

5255
Note that rustfmt may not necessarily support all combinations of Rust edition
5356
and style edition; in particular, it may not support using a style edition that

0 commit comments

Comments
 (0)