From e2c36941842a8a458222bff6f0386e0c92fd283b Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Thu, 11 Jul 2024 11:24:31 +1000 Subject: [PATCH] rustfmt: Use show_parse_errors There are no behaviour changes with this patch applied. In https://github.com/rust-lang/rustfmt/pull/5961 the `hide_parse_errors` was changed to `show_parse_errors` with default `true`. Since we run the formatter with nightly we are getting the following warning Warning: the `hide_parse_errors` option is deprecated. Use `show_parse_errors` instead Rename the variable and keep the default value `true`. --- rustfmt.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rustfmt.toml b/rustfmt.toml index 93e688a20..c8a2256ec 100644 --- a/rustfmt.toml +++ b/rustfmt.toml @@ -70,7 +70,7 @@ color = "Auto" unstable_features = false disable_all_formatting = false skip_children = false -hide_parse_errors = false +show_parse_errors = true error_on_line_overflow = false error_on_unformatted = false emit_mode = "Files"