diff options
| author | Stéphane Campinas <stephane.campinas@gmail.com> | 2019-03-31 22:27:15 +0200 |
|---|---|---|
| committer | Stéphane Campinas <stephane.campinas@gmail.com> | 2019-03-31 22:27:15 +0200 |
| commit | d52c408d8dc456f6e3da4ebdd7b26abec4dbb6a4 (patch) | |
| tree | 9657eb1a0e06d7e63fa57066ff07cdb42865cbca /Processes.md | |
| parent | 7650f0bc8bbf8addf734dc3b0379c8bcb130089c (diff) | |
| download | rust-d52c408d8dc456f6e3da4ebdd7b26abec4dbb6a4.tar.gz rust-d52c408d8dc456f6e3da4ebdd7b26abec4dbb6a4.zip | |
add document describing rustfmt's stabilisation process
Diffstat (limited to 'Processes.md')
| -rw-r--r-- | Processes.md | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Processes.md b/Processes.md new file mode 100644 index 00000000000..ccdb65f29ad --- /dev/null +++ b/Processes.md @@ -0,0 +1,22 @@ +This document outlines processes regarding management of rustfmt. + +# Stabilising an Option + +In this Section, we describe how to stabilise an option of the rustfmt's configration. + +## Conditions + +- The option is well tested, both in unit tests and, optimally, in real usage. +- There is no open bug about the option that prevents its use. + +## Steps + +Open a pull request that closes the tracking issue. The tracking issue is listed beside the option in `Configurations.md`. + +- Update the `Config` enum marking the option as stable. +- Update the the `Configuration.md` file marking the option as stable. +- Update the unstable options wiki page: https://github.com/rust-lang/rustfmt/wiki/Stability-of-Config-Options . + +## After the stabilisation + +The option should remain backward-compatible with previous parameters of the option. For instance, if the option is an enum `enum Foo { Alice, Bob }` and the variant `Foo::Bob` is removed/renamed, existing use of the `Foo::Bob` variant should map to the new logic. Breaking changes can be applied under the condition they are version-gated. |
