Re: [PATCH] rust: fix formatting expressions
From: Miguel Ojeda
Date: Sun Jan 04 2026 - 17:56:24 EST
On Sun, Jan 4, 2026 at 2:00 PM Tamir Duberstein <tamird@xxxxxxxxxx> wrote:
>
> From: Tamir Duberstein <tamird@xxxxxxxxx>
>
> Allow usage like `pr_info!("one + 1 = {}", one + 1)` to compile by
> ensuring that a reference is taken to the entire expression.
>
> Fixes: c5cf01ba8dfe ("rust: support formatting of foreign types")
> Reported-by: Janne Grunau <j@xxxxxxxxxx>
> Closes: https://rust-for-linux.zulipchat.com/#narrow/channel/288089-General/topic/Custom.20formatting/near/566219493
> ---
> Signed-off-by: Tamir Duberstein <tamird@xxxxxxxxx>
Applied to `rust-fixes` -- thanks everyone!
[ Added Signed-off-by back. Reworded title. - Miguel ]
Cheers,
Miguel