Skip to content

Commit c42bece

Browse files
committed
Allow new style editions to start out as nightly only
1 parent 2f168cb commit c42bece

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

text/3338-style-evolution.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,12 @@ Note that rustfmt may not necessarily support all combinations of Rust edition
5656
and style edition; in particular, it may not support using a style edition that
5757
differs by more than one step from the Rust edition.
5858

59+
New style editions will be initially introduced as nightly-only, to make them
60+
available for testing; such nightly-only editions will produce an error if
61+
requested in stable rustfmt. Nightly versions of style editions are subject to
62+
change and do not provide stability guarantees. New style editions will get
63+
stabilized contemporaneously with the corresponding Rust edition.
64+
5965
The style team will maintain distinct versions of the style guide for each style
6066
edition. Note that archived versions of the style guide may not necessarily
6167
document formatting for newer Rust constructs that did not exist at the time
@@ -87,7 +93,8 @@ continuous-integration checks that check formatting.
8793
# Prior art
8894
[prior-art]: #prior-art
8995

90-
The Rust edition mechanism itself serves as prior art.
96+
The Rust edition mechanism itself serves as prior art, as does the mechanism of
97+
nightly features remaining subject to change until stabilization.
9198

9299
`rustfmt` has a still-unstable option `version = "Two"` to opt into new
93100
formatting, though the exact changes this makes are not documented.

0 commit comments

Comments
 (0)