Re: [PATCH] rust-analyzer: update generate_rust_analyzer to pass cfg to macros crate

From: Tamir Duberstein

Date: Fri May 08 2026 - 09:07:56 EST


On Fri, May 8, 2026 at 3:04 AM Malte Wechter <maltewechter@xxxxxxxxx> wrote:
>
> pass kernel configurations to the macros crate to prevent rust-analyzer
> from marking conditionally included macros as 'never included'.
> Add the generated configurations to the macros cfg list
> so rust-analyzer correctly hints inclusion and exclusion.
>
> Signed-off-by: Malte Wechter <maltewechter@xxxxxxxxx>

Hi Malte, thanks for your patch. I haven't seen this issue. Could you
please help me reproduce what you're seeing?

Directionally I think this patch is incorrect because the macros crate
is a host-side crate and generated_cfg is for target-side cfgs.

Tamir