[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CA+tqQ4Kiypr8hZ8d9zRgjkoTDaXcszEm6U3k_OoJL=mhGd_kgw@mail.gmail.com>
Date: Mon, 5 Jan 2026 13:31:37 +0900
From: Jesung Yang <y.j3ms.n@...il.com>
To: Tamir Duberstein <tamird@...il.com>
Cc: Miguel Ojeda <ojeda@...nel.org>, Alex Gaynor <alex.gaynor@...il.com>,
Nathan Chancellor <nathan@...nel.org>, Nicolas Schier <nicolas@...sle.eu>, Boqun Feng <boqun.feng@...il.com>,
Gary Guo <gary@...yguo.net>, Björn Roy Baron <bjorn3_gh@...tonmail.com>,
Benno Lossin <lossin@...nel.org>, Andreas Hindborg <a.hindborg@...nel.org>,
Alice Ryhl <aliceryhl@...gle.com>, Trevor Gross <tmgross@...ch.edu>,
Danilo Krummrich <dakr@...nel.org>, rust-for-linux@...r.kernel.org,
linux-kbuild@...r.kernel.org, linux-kernel@...r.kernel.org,
patches@...ts.linux.dev
Subject: Re: [PATCH v2 19/20] rust: syn: enable support in kbuild
On Mon, Jan 5, 2026 at 8:17 AM Tamir Duberstein <tamird@...il.com> wrote:
> On Mon, Nov 24, 2025 at 10:25 AM Miguel Ojeda <ojeda@...nel.org> wrote:
[...]
> > diff --git a/scripts/generate_rust_analyzer.py b/scripts/generate_rust_analyzer.py
> > index 4faf153ed2ee..5b6f7b8d6918 100755
> > --- a/scripts/generate_rust_analyzer.py
> > +++ b/scripts/generate_rust_analyzer.py
> > @@ -100,6 +100,13 @@ def generate_crates(srctree, objtree, sysroot_src, external_src, cfgs, core_edit
> > cfg=crates_cfgs["quote"],
> > )
> >
> > + append_crate(
> > + "syn",
> > + srctree / "rust" / "syn" / "lib.rs",
> > + ["proc_macro", "proc_macro2", "quote"],
> > + cfg=crates_cfgs["syn"],
> > + )
>
> I think we need to add "std" here -- without it, navigating to methods
> on e.g. Vec items defined in syn doesn't work (it does work with "std"
> added).
This was handled in [1], but hasn't landed yet, probably due to lack of
Reviewed-by or Tested-by tags. If anyone has a moment to take a look
and provide some tags, it would be appreciated!
[1] https://lore.kernel.org/rust-for-linux/6dbdf6e1c1639ae381ca9ab7041f84728ffa2267.1764062688.git.y.j3ms.n@gmail.com/
Best regards,
Jesung
Powered by blists - more mailing lists