Re: make ARCH=arm64 rustdoc fails on a x86 host with SCS enabled

From: Miguel Ojeda
Date: Sun Jul 27 2025 - 05:26:17 EST


On Tue, Jul 22, 2025 at 2:40 PM Miguel Ojeda
<miguel.ojeda.sandonis@xxxxxxxxx> wrote:
>
> Thanks, I can reproduce it -- I will send a patch.

It turns out it is a Rust compiler (`rustdoc`) bug -- filled:

https://github.com/rust-lang/rust/issues/144521

I also sent a fix upstream, with a test similar to the kernel case:

https://github.com/rust-lang/rust/pull/144523

And this is the patch to workaround it in the kernel for the time being:

https://lore.kernel.org/rust-for-linux/20250727092317.2930617-1-ojeda@xxxxxxxxxx/

Cheers,
Miguel