[PATCH] rustfmt: disable wrap_comments

Paolo Bonzini posted 1 patch 3 weeks, 3 days ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20260902083624.419157-1-pbonzini@redhat.com
Maintainers: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
rust/rustfmt.toml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] rustfmt: disable wrap_comments
Posted by Paolo Bonzini 3 weeks, 3 days ago
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.

Reported-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
 rust/rustfmt.toml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rust/rustfmt.toml b/rust/rustfmt.toml
index ebecb99fe09..a7d610bce21 100644
--- a/rust/rustfmt.toml
+++ b/rust/rustfmt.toml
@@ -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
-- 
2.55.0
Re: [PATCH] rustfmt: disable wrap_comments
Posted by Philippe Mathieu-Daudé 3 weeks, 2 days ago
On 2/9/26 10:36, Paolo Bonzini wrote:
> 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.
> 
> Reported-by: Peter Maydell <peter.maydell@linaro.org>
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> ---
>   rust/rustfmt.toml | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/rust/rustfmt.toml b/rust/rustfmt.toml
> index ebecb99fe09..a7d610bce21 100644
> --- a/rust/rustfmt.toml
> +++ b/rust/rustfmt.toml
> @@ -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:
Reviewed-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>

and queued to unblock my GitLab CI, thanks.