[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CANiq72mahAGxQAr44rU_bEHtyJxDgKgbY1G_+fG7YhL=Lq5xtA@mail.gmail.com>
Date: Fri, 7 Apr 2023 00:33:08 +0200
From: Miguel Ojeda <miguel.ojeda.sandonis@...il.com>
To: Andreas Hindborg <nmi@...aspace.dk>,
Asahi Lina <lina@...hilina.net>
Cc: rust-for-linux@...r.kernel.org,
Andreas Hindborg <a.hindborg@...sung.com>,
Miguel Ojeda <ojeda@...nel.org>,
Alex Gaynor <alex.gaynor@...il.com>,
Wedson Almeida Filho <wedsonaf@...il.com>,
Boqun Feng <boqun.feng@...il.com>, Gary Guo <gary@...yguo.net>,
Björn Roy Baron <bjorn3_gh@...tonmail.com>,
open list <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] scripts: rust-analyzer: Skip crate module directories
On Tue, Mar 7, 2023 at 1:08 PM Andreas Hindborg <nmi@...aspace.dk> wrote:
>
> When generating rust-analyzer configuration, skip module directories. This fixes
> an issue that occur if we have
>
> - drivers/block/driver.rs
> - drivers/block/driver_mod/mod.rs
>
> If `driver_mod` is a module of the crate `driver`, the directory `driver_mod`
> may not contain `Makefile`, and `generate_rust_analyzer.py` will fail.
I picked Lina's for `rust-fixes` from
https://github.com/Rust-for-Linux/linux/pull/883.
Cheers,
Miguel
Powered by blists - more mailing lists