Skip to content

Commit

Permalink
make show_parse_errors unstable
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex5041 committed Dec 8, 2023
1 parent 2355cfe commit d53d40b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Configurations.md
Original file line number Diff line number Diff line change
Expand Up @@ -1260,7 +1260,7 @@ Show parse errors if the parser failed to parse files.

- **Default value**: `true`
- **Possible values**: `true`, `false`
- **Stable**: Yes
- **Stable**: No (tracking issue: [#5977](https://github.com/rust-lang/rustfmt/issues/5977))

## `ignore`

Expand Down
6 changes: 3 additions & 3 deletions src/config/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ create_config! {
disable_all_formatting: bool, false, true, "Don't reformat anything";
skip_children: bool, false, false, "Don't reformat out of line modules";
hide_parse_errors: bool, false, false, "(deprecated: use show_parse_errors instead)";
show_parse_errors: bool, true, true, "Show errors from the parser";
show_parse_errors: bool, true, false, "Show errors from the parser (unstable)";
error_on_line_overflow: bool, false, false, "Error if unable to get all lines within max_width";
error_on_unformatted: bool, false, false,
"Error if unable to get comments or string literals within max_width, \
Expand Down Expand Up @@ -461,8 +461,8 @@ mod test {
// hide_parse_errors renamed to show_parse_errors
hide_parse_errors: bool, false, false,
"(deprecated: use show_parse_errors instead)";
show_parse_errors: bool, true, true,
"Show errors from the parser";
show_parse_errors: bool, true, false,
"Show errors from the parser (unstable)";


// Width Heuristics
Expand Down

0 comments on commit d53d40b

Please sign in to comment.