Skip to contentSkip to conversation

rustfmt: disable wrap_comments

PATCH In review Paolo Bonzini 2 participants 2 messages Sep 2 – Sep 3 Rust

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rustfmt: disable wrap_comments

This was in practice not enabled until now, and now that it is the results are not great. Disable it so that the CI job check-rust-tools-nightly does not fail gratuitously.

---
 rust/rustfmt.toml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
rust/rustfmt.toml +1 -1
index ebecb99fe09..a7d610bce21 100644
@@ -4,4 +4,4 @@ format_code_in_doc_comments = true
 format_strings = true
 imports_granularity = "Crate"
 group_imports = "StdExternalCrate"
-wrap_comments = true
+wrap_comments = false
Signature · 1 line
2.55.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 15 lines · Paolo Bonzini

This was in practice not enabled until now, and now that it is the results are not great. Disable it so that the CI job check-rust-tools-nightly does not fail gratuitously.

---
  rust/rustfmt.toml | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
rust/rustfmt.toml +0 -0
index ebecb99fe09..a7d610bce21 100644

rust/rustfmt.toml format_code_in_doc_comments = true · line 7

Quoted 5 lines
rust/rustfmt.toml +1 -1
@@ -4,4 +4,4 @@ format_code_in_doc_comments = true
  format_strings = true
  imports_granularity = "Crate"
  group_imports = "StdExternalCrate"
-wrap_comments = true
+wrap_comments = false

Correct per https://rust-lang.github.io/rustfmt/?version=v1.10.0&search=#wrap_comments so:

and queued to unblock my GitLab CI, thanks.