From c961a8d370d4788feef1564c9446f7aa3aff9cf7 Mon Sep 17 00:00:00 2001 From: llesha Date: Fri, 10 Nov 2023 18:15:50 +0300 Subject: [PATCH] fixed configuration test --- Configurations.md | 10 +++++++++- src/config/mod.rs | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/Configurations.md b/Configurations.md index ac5747800b2..b1baf487eaf 100644 --- a/Configurations.md +++ b/Configurations.md @@ -1248,12 +1248,20 @@ Control the case of the letters in hexadecimal literal values ## `hide_parse_errors` -Do not show parse errors if the parser failed to parse files. +This option is deprecated. Use `show_parse_errors` instead. - **Default value**: `false` - **Possible values**: `true`, `false` - **Stable**: No (tracking issue: [#3390](https://github.com/rust-lang/rustfmt/issues/3390)) +## `show_parse_errors` + +Show parse errors if the parser failed to parse files. + +- **Default value**: `true` +- **Possible values**: `true`, `false` +- **Stable**: Yes + ## `ignore` Skip formatting files and directories that match the specified pattern. diff --git a/src/config/mod.rs b/src/config/mod.rs index c160b4ea7e6..56fcbce769a 100644 --- a/src/config/mod.rs +++ b/src/config/mod.rs @@ -682,8 +682,8 @@ required_version = "{}" unstable_features = false disable_all_formatting = false skip_children = false -hide_parse_errors = false show_parse_errors = true +hide_parse_errors = false error_on_line_overflow = false error_on_unformatted = false ignore = []