[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CA+tqQ4LX2ihwY11VJk3LNNE-STsONJWF0rdDa0Pq09oA7YRXEw@mail.gmail.com>
Date: Fri, 21 Nov 2025 18:08:00 +0900
From: Jesung Yang <y.j3ms.n@...il.com>
To: Miguel Ojeda <ojeda@...nel.org>
Cc: a.hindborg@...nel.org, alex.gaynor@...il.com, aliceryhl@...gle.com,
bjorn3_gh@...tonmail.com, boqun.feng@...il.com, dakr@...nel.org,
gary@...yguo.net, linux-kbuild@...r.kernel.org, linux-kernel@...r.kernel.org,
lossin@...nel.org, nathan@...nel.org, nicolas@...sle.eu,
patches@...ts.linux.dev, rust-for-linux@...r.kernel.org, tmgross@...ch.edu
Subject: Re: [PATCH 00/18] `syn` support
On Fri, Nov 21, 2025 at 2:36 PM Miguel Ojeda <ojeda@...nel.org> wrote:
> For using (all of) them from `macros`, you would need [1].
Now everything compiles. Thanks!
By the way, I needed to make a small change to
`generate_rust_analyzer.py` for rust-analyzer to correctly reference
symbols from the vendored crates:
diff --git a/scripts/generate_rust_analyzer.py
b/scripts/generate_rust_analyzer.py
index 5b6f7b8d6918..147d0cc94068 100755
--- a/scripts/generate_rust_analyzer.py
+++ b/scripts/generate_rust_analyzer.py
@@ -110,7 +110,7 @@ def generate_crates(srctree, objtree, sysroot_src,
external_src, cfgs, core_edit
append_crate(
"macros",
srctree / "rust" / "macros" / "lib.rs",
- ["std", "proc_macro"],
+ ["std", "proc_macro", "proc_macro2", "quote", "syn"],
is_proc_macro=True,
)
This might already be covered somewhere else, but I'm bringing it up
just in case.
Best Regards,
Jesung
Powered by blists - more mailing lists