Re: [PATCH] rust: print: Fix issue with rust_build_error
From: Miguel Ojeda
Date: Mon Sep 22 2025 - 07:25:36 EST
On Mon, Sep 22, 2025 at 12:29 PM Gary Guo <gary@xxxxxxxxxxx> wrote:
>
> I suggested to Joel during Kangrejos that just
>
> pr_err!("{}", {offset});
>
> should work, as it would create a new copy.
This one (or Benno's) sounds simple enough (assuming `rustfmt` keeps
it reasonable) -- I would welcome a patch adding the explanation of
the issue and the workaround(s) to e.g.
`Documentation/rust/coding-guidelines.rst`.
Thanks!
Cheers,
Miguel