]> git.lizzy.rs Git - rust.git/blobdiff - Configurations.md
Add context to get_toml_path() error (#5207)
[rust.git] / Configurations.md
index a89fbe863e65283ce47ca0e36f87a0267058eb52..2e2b0f7cfbecf28df7fe9b0fc957bde33f01ac5a 100644 (file)
@@ -929,9 +929,11 @@ fn add_one(x: i32) -> i32 {
 ## `format_generated_files`
 
 Format generated files. A file is considered generated
-if any of the first five lines contains `@generated` marker.
+if any of the first five lines contain a `@generated` comment marker.
+By default, generated files are reformatted, i. e. `@generated` marker is ignored.
+This option is currently ignored for stdin (`@generated` in stdin is ignored.)
 
-- **Default value**: `false`
+- **Default value**: `true`
 - **Possible values**: `true`, `false`
 - **Stable**: No (tracking issue: [#5080](https://github.com/rust-lang/rustfmt/issues/5080))