mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-03 01:16:14 +03:00
Link tracking issues in Configurations.md (#4096)
# Conflicts: # Configurations.md
This commit is contained in:
committed by
Caleb Cartwright
parent
ea199bacef
commit
e6d1bf5acb
+47
-47
@@ -47,7 +47,7 @@ Where to put a binary operator when a binary expression goes multiline.
|
||||
|
||||
- **Default value**: `"Front"`
|
||||
- **Possible values**: `"Front"`, `"Back"`
|
||||
- **Stable**: No (tracking issue: #3368)
|
||||
- **Stable**: No (tracking issue: [#3368](https://github.com/rust-lang/rustfmt/issues/3368))
|
||||
|
||||
#### `"Front"` (default):
|
||||
|
||||
@@ -88,7 +88,7 @@ them, additional blank lines are inserted.
|
||||
|
||||
- **Default value**: `0`
|
||||
- **Possible values**: *unsigned integer*
|
||||
- **Stable**: No (tracking issue: #3382)
|
||||
- **Stable**: No (tracking issue: [#3382](https://github.com/rust-lang/rustfmt/issues/3382))
|
||||
|
||||
### Example
|
||||
Original Code (rustfmt will not change it with the default value of `0`):
|
||||
@@ -128,7 +128,7 @@ lines are found, they are trimmed down to match this integer.
|
||||
|
||||
- **Default value**: `1`
|
||||
- **Possible values**: any non-negative integer
|
||||
- **Stable**: No (tracking issue: #3381)
|
||||
- **Stable**: No (tracking issue: [#3381](https://github.com/rust-lang/rustfmt/issues/3381))
|
||||
|
||||
### Example
|
||||
Original Code:
|
||||
@@ -186,7 +186,7 @@ Brace style for items
|
||||
|
||||
- **Default value**: `"SameLineWhere"`
|
||||
- **Possible values**: `"AlwaysNextLine"`, `"PreferSameLine"`, `"SameLineWhere"`
|
||||
- **Stable**: No (tracking issue: #3376)
|
||||
- **Stable**: No (tracking issue: [#3376](https://github.com/rust-lang/rustfmt/issues/3376))
|
||||
|
||||
### Functions
|
||||
|
||||
@@ -313,7 +313,7 @@ Whether to use colored output or not.
|
||||
|
||||
- **Default value**: `"Auto"`
|
||||
- **Possible values**: "Auto", "Always", "Never"
|
||||
- **Stable**: No (tracking issue: #3385)
|
||||
- **Stable**: No (tracking issue: [#3385](https://github.com/rust-lang/rustfmt/issues/3385))
|
||||
|
||||
## `combine_control_expr`
|
||||
|
||||
@@ -321,7 +321,7 @@ Combine control expressions with function calls.
|
||||
|
||||
- **Default value**: `true`
|
||||
- **Possible values**: `true`, `false`
|
||||
- **Stable**: No (tracking issue: #3369)
|
||||
- **Stable**: No (tracking issue: [#3369](https://github.com/rust-lang/rustfmt/issues/3369))
|
||||
|
||||
#### `true` (default):
|
||||
|
||||
@@ -429,7 +429,7 @@ Maximum length of comments. No effect unless`wrap_comments = true`.
|
||||
|
||||
- **Default value**: `80`
|
||||
- **Possible values**: any positive integer
|
||||
- **Stable**: No (tracking issue: #3349)
|
||||
- **Stable**: No (tracking issue: [#3349](https://github.com/rust-lang/rustfmt/issues/3349))
|
||||
|
||||
**Note:** A value of `0` results in [`wrap_comments`](#wrap_comments) being applied regardless of a line's width.
|
||||
|
||||
@@ -452,7 +452,7 @@ Replace strings of _ wildcards by a single .. in tuple patterns
|
||||
|
||||
- **Default value**: `false`
|
||||
- **Possible values**: `true`, `false`
|
||||
- **Stable**: No (tracking issue: #3384)
|
||||
- **Stable**: No (tracking issue: [#3384](https://github.com/rust-lang/rustfmt/issues/3384))
|
||||
|
||||
#### `false` (default):
|
||||
|
||||
@@ -477,7 +477,7 @@ Brace style for control flow constructs
|
||||
|
||||
- **Default value**: `"AlwaysSameLine"`
|
||||
- **Possible values**: `"AlwaysNextLine"`, `"AlwaysSameLine"`, `"ClosingNextLine"`
|
||||
- **Stable**: No (tracking issue: #3377)
|
||||
- **Stable**: No (tracking issue: [#3377](https://github.com/rust-lang/rustfmt/issues/3377))
|
||||
|
||||
#### `"AlwaysSameLine"` (default):
|
||||
|
||||
@@ -551,7 +551,7 @@ Put empty-body functions and impls on a single line
|
||||
|
||||
- **Default value**: `true`
|
||||
- **Possible values**: `true`, `false`
|
||||
- **Stable**: No (tracking issue: #3356)
|
||||
- **Stable**: No (tracking issue: [#3356](https://github.com/rust-lang/rustfmt/issues/3356))
|
||||
|
||||
#### `true` (default):
|
||||
|
||||
@@ -584,7 +584,7 @@ doesn't get ignored when aligning.
|
||||
|
||||
- **Default value** : 0
|
||||
- **Possible values**: any positive integer
|
||||
- **Stable**: No (tracking issue: #3372)
|
||||
- **Stable**: No (tracking issue: [#3372](https://github.com/rust-lang/rustfmt/issues/3372))
|
||||
|
||||
#### `0` (default):
|
||||
|
||||
@@ -630,7 +630,7 @@ using a shorter name.
|
||||
|
||||
- **Default value**: `false`
|
||||
- **Possible values**: `true`, `false`
|
||||
- **Stable**: No (tracking issue: #3391)
|
||||
- **Stable**: No (tracking issue: [#3391](https://github.com/rust-lang/rustfmt/issues/3391))
|
||||
|
||||
See also [`max_width`](#max_width).
|
||||
|
||||
@@ -641,7 +641,7 @@ trailing whitespaces.
|
||||
|
||||
- **Default value**: `false`
|
||||
- **Possible values**: `true`, `false`
|
||||
- **Stable**: No (tracking issue: #3392)
|
||||
- **Stable**: No (tracking issue: [#3392](https://github.com/rust-lang/rustfmt/issues/3392))
|
||||
|
||||
## `fn_args_layout`
|
||||
|
||||
@@ -771,7 +771,7 @@ Put single-expression functions on a single line
|
||||
|
||||
- **Default value**: `false`
|
||||
- **Possible values**: `true`, `false`
|
||||
- **Stable**: No (tracking issue: #3358)
|
||||
- **Stable**: No (tracking issue: [#3358](https://github.com/rust-lang/rustfmt/issues/3358))
|
||||
|
||||
#### `false` (default):
|
||||
|
||||
@@ -832,7 +832,7 @@ Force multiline closure and match arm bodies to be wrapped in a block
|
||||
|
||||
- **Default value**: `false`
|
||||
- **Possible values**: `false`, `true`
|
||||
- **Stable**: No (tracking issue: #3374)
|
||||
- **Stable**: No (tracking issue: [#3374](https://github.com/rust-lang/rustfmt/issues/3374))
|
||||
|
||||
#### `false` (default):
|
||||
|
||||
@@ -881,7 +881,7 @@ Format code snippet included in doc comments.
|
||||
|
||||
- **Default value**: `false`
|
||||
- **Possible values**: `true`, `false`
|
||||
- **Stable**: No (tracking issue: #3348)
|
||||
- **Stable**: No (tracking issue: [#3348](https://github.com/rust-lang/rustfmt/issues/3348))
|
||||
|
||||
#### `false` (default):
|
||||
|
||||
@@ -941,7 +941,7 @@ Format the metavariable matching patterns in macros.
|
||||
|
||||
- **Default value**: `false`
|
||||
- **Possible values**: `true`, `false`
|
||||
- **Stable**: No (tracking issue: #3354)
|
||||
- **Stable**: No (tracking issue: [#3354](https://github.com/rust-lang/rustfmt/issues/3354))
|
||||
|
||||
#### `false` (default):
|
||||
|
||||
@@ -978,7 +978,7 @@ Format the bodies of macros.
|
||||
|
||||
- **Default value**: `true`
|
||||
- **Possible values**: `true`, `false`
|
||||
- **Stable**: No (tracking issue: #3355)
|
||||
- **Stable**: No (tracking issue: [#3355](https://github.com/rust-lang/rustfmt/issues/3355))
|
||||
|
||||
#### `true` (default):
|
||||
|
||||
@@ -1011,7 +1011,7 @@ Format string literals where necessary
|
||||
|
||||
- **Default value**: `false`
|
||||
- **Possible values**: `true`, `false`
|
||||
- **Stable**: No (tracking issue: #3353)
|
||||
- **Stable**: No (tracking issue: [#3353](https://github.com/rust-lang/rustfmt/issues/3353))
|
||||
|
||||
#### `false` (default):
|
||||
|
||||
@@ -1072,7 +1072,7 @@ Do not show parse errors if the parser failed to parse files.
|
||||
|
||||
- **Default value**: `false`
|
||||
- **Possible values**: `true`, `false`
|
||||
- **Stable**: No (tracking issue: #3390)
|
||||
- **Stable**: No (tracking issue: [#3390](https://github.com/rust-lang/rustfmt/issues/3390))
|
||||
|
||||
## `ignore`
|
||||
|
||||
@@ -1081,7 +1081,7 @@ The pattern format is the same as [.gitignore](https://git-scm.com/docs/gitignor
|
||||
|
||||
- **Default value**: format every file
|
||||
- **Possible values**: See an example below
|
||||
- **Stable**: No (tracking issue: #3395)
|
||||
- **Stable**: No (tracking issue: [#3395](https://github.com/rust-lang/rustfmt/issues/3395))
|
||||
|
||||
### Example
|
||||
|
||||
@@ -1114,7 +1114,7 @@ Indent style of imports
|
||||
|
||||
- **Default Value**: `"Block"`
|
||||
- **Possible values**: `"Block"`, `"Visual"`
|
||||
- **Stable**: No (tracking issue: #3360)
|
||||
- **Stable**: No (tracking issue: [#3360](https://github.com/rust-lang/rustfmt/issues/3360))
|
||||
|
||||
#### `"Block"` (default):
|
||||
|
||||
@@ -1140,7 +1140,7 @@ Item layout inside a imports block
|
||||
|
||||
- **Default value**: "Mixed"
|
||||
- **Possible values**: "Horizontal", "HorizontalVertical", "Mixed", "Vertical"
|
||||
- **Stable**: No (tracking issue: #3361)
|
||||
- **Stable**: No (tracking issue: [#3361](https://github.com/rust-lang/rustfmt/issues/3361))
|
||||
|
||||
#### `"Mixed"` (default):
|
||||
|
||||
@@ -1203,7 +1203,7 @@ Indent on expressions or items.
|
||||
|
||||
- **Default value**: `"Block"`
|
||||
- **Possible values**: `"Block"`, `"Visual"`
|
||||
- **Stable**: No (tracking issue: #3346)
|
||||
- **Stable**: No (tracking issue: [#3346](https://github.com/rust-lang/rustfmt/issues/3346))
|
||||
|
||||
### Array
|
||||
|
||||
@@ -1456,7 +1456,7 @@ Write an item and its attribute on the same line if their combined width is belo
|
||||
|
||||
- **Default value**: 0
|
||||
- **Possible values**: any positive integer
|
||||
- **Stable**: No (tracking issue: #3343)
|
||||
- **Stable**: No (tracking issue: [#3343](https://github.com/rust-lang/rustfmt/issues/3343))
|
||||
|
||||
### Example
|
||||
|
||||
@@ -1477,7 +1477,7 @@ Check whether beginnings of files match a license template.
|
||||
|
||||
- **Default value**: `""`
|
||||
- **Possible values**: path to a license template file
|
||||
- **Stable**: No (tracking issue: #3352)
|
||||
- **Stable**: No (tracking issue: [#3352](https://github.com/rust-lang/rustfmt/issues/3352))
|
||||
|
||||
A license template is a plain text file which is matched literally against the
|
||||
beginning of each source file, except for `{}`-delimited blocks, which are
|
||||
@@ -1499,7 +1499,7 @@ The Style Guide requires that bodies are block wrapped by default if a line brea
|
||||
|
||||
- **Default value**: `true`
|
||||
- **Possible values**: `true`, `false`
|
||||
- **Stable**: No (tracking issue: #3373)
|
||||
- **Stable**: No (tracking issue: [#3373](https://github.com/rust-lang/rustfmt/issues/3373))
|
||||
|
||||
#### `true` (default):
|
||||
|
||||
@@ -1826,7 +1826,7 @@ Convert /* */ comments to // comments where possible
|
||||
|
||||
- **Default value**: `false`
|
||||
- **Possible values**: `true`, `false`
|
||||
- **Stable**: No (tracking issue: #3350)
|
||||
- **Stable**: No (tracking issue: [#3350](https://github.com/rust-lang/rustfmt/issues/3350))
|
||||
|
||||
#### `false` (default):
|
||||
|
||||
@@ -1854,7 +1854,7 @@ Convert `#![doc]` and `#[doc]` attributes to `//!` and `///` doc comments.
|
||||
|
||||
- **Default value**: `false`
|
||||
- **Possible values**: `true`, `false`
|
||||
- **Stable**: No (tracking issue: #3351)
|
||||
- **Stable**: No (tracking issue: [#3351](https://github.com/rust-lang/rustfmt/issues/3351))
|
||||
|
||||
#### `false` (default):
|
||||
|
||||
@@ -1885,7 +1885,7 @@ instead of being indented on a new line.
|
||||
|
||||
- **Default value**: `false`
|
||||
- **Possible values**: `true`, `false`
|
||||
- **Stable**: No (tracking issue: #3370)
|
||||
- **Stable**: No (tracking issue: [#3370](https://github.com/rust-lang/rustfmt/issues/3370))
|
||||
|
||||
#### `false` (default):
|
||||
|
||||
@@ -1992,7 +1992,7 @@ Reorder impl items. `type` and `const` are put first, then macros and methods.
|
||||
|
||||
- **Default value**: `false`
|
||||
- **Possible values**: `true`, `false`
|
||||
- **Stable**: No (tracking issue: #3363)
|
||||
- **Stable**: No (tracking issue: [#3363](https://github.com/rust-lang/rustfmt/issues/3363))
|
||||
|
||||
#### `false` (default)
|
||||
|
||||
@@ -2166,7 +2166,7 @@ Report `FIXME` items in comments.
|
||||
|
||||
- **Default value**: `"Never"`
|
||||
- **Possible values**: `"Always"`, `"Unnumbered"`, `"Never"`
|
||||
- **Stable**: No (tracking issue: #3394)
|
||||
- **Stable**: No (tracking issue: [#3394](https://github.com/rust-lang/rustfmt/issues/3394))
|
||||
|
||||
Warns about any comments containing `FIXME` in them when set to `"Always"`. If
|
||||
it contains a `#X` (with `X` being a number) in parentheses following the
|
||||
@@ -2181,7 +2181,7 @@ Report `TODO` items in comments.
|
||||
|
||||
- **Default value**: `"Never"`
|
||||
- **Possible values**: `"Always"`, `"Unnumbered"`, `"Never"`
|
||||
- **Stable**: No (tracking issue: #3393)
|
||||
- **Stable**: No (tracking issue: [#3393](https://github.com/rust-lang/rustfmt/issues/3393))
|
||||
|
||||
Warns about any comments containing `TODO` in them when set to `"Always"`. If
|
||||
it contains a `#X` (with `X` being a number) in parentheses following the
|
||||
@@ -2196,7 +2196,7 @@ specific version of rustfmt is used in your CI, use this option.
|
||||
|
||||
- **Default value**: `CARGO_PKG_VERSION`
|
||||
- **Possible values**: any published version (e.g. `"0.3.8"`)
|
||||
- **Stable**: No (tracking issue: #3386)
|
||||
- **Stable**: No (tracking issue: [#3386](https://github.com/rust-lang/rustfmt/issues/3386))
|
||||
|
||||
## `skip_children`
|
||||
|
||||
@@ -2204,7 +2204,7 @@ Don't reformat out of line modules
|
||||
|
||||
- **Default value**: `false`
|
||||
- **Possible values**: `true`, `false`
|
||||
- **Stable**: No (tracking issue: #3389)
|
||||
- **Stable**: No (tracking issue: [#3389](https://github.com/rust-lang/rustfmt/issues/3386))
|
||||
|
||||
## `single_line_if_else_max_width`
|
||||
|
||||
@@ -2224,7 +2224,7 @@ Leave a space after the colon.
|
||||
|
||||
- **Default value**: `true`
|
||||
- **Possible values**: `true`, `false`
|
||||
- **Stable**: No (tracking issue: #3366)
|
||||
- **Stable**: No (tracking issue: [#3366](https://github.com/rust-lang/rustfmt/issues/3366))
|
||||
|
||||
#### `true` (default):
|
||||
|
||||
@@ -2256,7 +2256,7 @@ Leave a space before the colon.
|
||||
|
||||
- **Default value**: `false`
|
||||
- **Possible values**: `true`, `false`
|
||||
- **Stable**: No (tracking issue: #3365)
|
||||
- **Stable**: No (tracking issue: [#3365](https://github.com/rust-lang/rustfmt/issues/3365))
|
||||
|
||||
#### `false` (default):
|
||||
|
||||
@@ -2288,7 +2288,7 @@ Put spaces around the .., ..=, and ... range operators
|
||||
|
||||
- **Default value**: `false`
|
||||
- **Possible values**: `true`, `false`
|
||||
- **Stable**: No (tracking issue: #3367)
|
||||
- **Stable**: No (tracking issue: [#3367](https://github.com/rust-lang/rustfmt/issues/3367))
|
||||
|
||||
#### `false` (default):
|
||||
|
||||
@@ -2344,7 +2344,7 @@ The maximum diff of width between struct fields to be aligned with each other.
|
||||
|
||||
- **Default value** : 0
|
||||
- **Possible values**: any non-negative integer
|
||||
- **Stable**: No (tracking issue: #3371)
|
||||
- **Stable**: No (tracking issue: [#3371](https://github.com/rust-lang/rustfmt/issues/3371))
|
||||
|
||||
#### `0` (default):
|
||||
|
||||
@@ -2372,7 +2372,7 @@ Put small struct literals on a single line
|
||||
|
||||
- **Default value**: `true`
|
||||
- **Possible values**: `true`, `false`
|
||||
- **Stable**: No (tracking issue: #3357)
|
||||
- **Stable**: No (tracking issue: [#3357](https://github.com/rust-lang/rustfmt/issues/3357))
|
||||
|
||||
#### `true` (default):
|
||||
|
||||
@@ -2460,7 +2460,7 @@ How to handle trailing commas for lists
|
||||
|
||||
- **Default value**: `"Vertical"`
|
||||
- **Possible values**: `"Always"`, `"Never"`, `"Vertical"`
|
||||
- **Stable**: No (tracking issue: #3379)
|
||||
- **Stable**: No (tracking issue: [#3379](https://github.com/rust-lang/rustfmt/issues/3379))
|
||||
|
||||
#### `"Vertical"` (default):
|
||||
|
||||
@@ -2518,7 +2518,7 @@ Add trailing semicolon after break, continue and return
|
||||
|
||||
- **Default value**: `true`
|
||||
- **Possible values**: `true`, `false`
|
||||
- **Stable**: No (tracking issue: #3378)
|
||||
- **Stable**: No (tracking issue: [#3378](https://github.com/rust-lang/rustfmt/issues/3378))
|
||||
|
||||
#### `true` (default):
|
||||
```rust
|
||||
@@ -2540,7 +2540,7 @@ Determines if `+` or `=` are wrapped in spaces in the punctuation of types
|
||||
|
||||
- **Default value**: `"Wide"`
|
||||
- **Possible values**: `"Compressed"`, `"Wide"`
|
||||
- **Stable**: No (tracking issue: #3364)
|
||||
- **Stable**: No (tracking issue: [#3364](https://github.com/rust-lang/rustfmt/issues/3364))
|
||||
|
||||
#### `"Wide"` (default):
|
||||
|
||||
@@ -2564,7 +2564,7 @@ Enable unstable features on the unstable channel.
|
||||
|
||||
- **Default value**: `false`
|
||||
- **Possible values**: `true`, `false`
|
||||
- **Stable**: No (tracking issue: #3387)
|
||||
- **Stable**: No (tracking issue: [#3387](https://github.com/rust-lang/rustfmt/issues/3387))
|
||||
|
||||
## `use_field_init_shorthand`
|
||||
|
||||
@@ -2779,7 +2779,7 @@ version number.
|
||||
|
||||
- **Default value**: `One`
|
||||
- **Possible values**: `One`, `Two`
|
||||
- **Stable**: No (tracking issue: #3383)
|
||||
- **Stable**: No (tracking issue: [#3383](https://github.com/rust-lang/rustfmt/issues/3383))
|
||||
|
||||
### Example
|
||||
|
||||
@@ -2793,7 +2793,7 @@ Forces the `where` clause to be laid out on a single line.
|
||||
|
||||
- **Default value**: `false`
|
||||
- **Possible values**: `true`, `false`
|
||||
- **Stable**: No (tracking issue: #3359)
|
||||
- **Stable**: No (tracking issue: [#3359](https://github.com/rust-lang/rustfmt/issues/3359))
|
||||
|
||||
#### `false` (default):
|
||||
|
||||
@@ -2825,7 +2825,7 @@ Break comments to fit on the line
|
||||
|
||||
- **Default value**: `false`
|
||||
- **Possible values**: `true`, `false`
|
||||
- **Stable**: No (tracking issue: #3347)
|
||||
- **Stable**: No (tracking issue: [#3347](https://github.com/rust-lang/rustfmt/issues/3347))
|
||||
|
||||
#### `false` (default):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user