Re: [PATCH] remove sysroot assertion in generate_rust_analyzer.py
From: Miguel Ojeda
Date: Sun Jan 18 2026 - 14:43:24 EST
On Wed, Dec 24, 2025 at 2:54 PM Onur Özkan <work@xxxxxxxxxxxxx> wrote:
>
> With nixpkgs's rustc, rust-src component is not bundled
> with the compiler by default and is instead provided from
> a separate store path, so this assumption does not hold.
>
> The assertion assumes these paths are in the same location
> which causes `make LLVM=1 rust-analyzer` to fail on NixOS.
>
> Link: https://rust-for-linux.zulipchat.com/#narrow/stream/x/topic/x/near/565284250
> Signed-off-by: Onur Özkan <work@xxxxxxxxxxxxx>
Applied to `rust-fixes` -- thanks everyone!
Fixes: fe992163575b ("rust: Support latest version of `rust-analyzer`")
Cc: stable@xxxxxxxxxxxxxxx
[ Reworded title. - Miguel ]
Cheers,
Miguel