Re: [PATCH v2 1/2] rust: doctest: fix incorrect pattern in replacement

From: Miguel Ojeda

Date: Fri Jun 19 2026 - 03:35:45 EST


On Tue, Jun 16, 2026 at 3:27 PM Gary Guo <gary@xxxxxxxxxx> wrote:
>
> The `-> Result<(), impl core::fmt::Debug>` string is generated by rustdoc
> and by adding "::" into the string it no longer finds anything, and making
> the line useless.
>
> Remove the "::" in the pattern. Omit it in the replacement too, for
> consistency with upstream rustdoc.
>
> Fixes: de7cd3e4d638 ("rust: use absolute paths in macros referencing core and kernel")
> Signed-off-by: Gary Guo <gary@xxxxxxxxxxx>

Applied to `rust-fixes` -- thanks!

[ Improved comments for consistency. Reworded to drop changelog and to
fix typo. - Miguel ]

While it doesn't happen to hurt much at the moment, the change here
was not intended and we should be able to easily backport it, so:

Cc: stable@xxxxxxxxxxxxxxx

Cheers,
Miguel