Re: [PATCH] rust: fix off-by-one line number in rustdoc tests
From: Miguel Ojeda
Date: Sun Jan 04 2026 - 17:55:13 EST
On Thu, Dec 11, 2025 at 7:22 PM Gary Guo <gary@xxxxxxxxxx> wrote:
>
> From: Gary Guo <gary@xxxxxxxxxxx>
>
> When the `#![allow]` line was added, the doctest line number anchor
> isn't updated which causes the line number printed in kunit test to be
> off-by-one.
>
> Fixes: ab844cf32058 ("rust: allow `unreachable_pub` for doctests")
> Signed-off-by: Gary Guo <gary@xxxxxxxxxxx>
Applied to `rust-fixes` -- thanks everyone!
Cheers,
Miguel