Re: [PATCH 06/12] rust: pin-init: rewrite `#[pin_data]` using `syn`

From: kernel test robot
Date: Fri Jan 09 2026 - 02:47:20 EST


Hi Benno,

kernel test robot noticed the following build warnings:

[auto build test WARNING on rust/rust-next]
[also build test WARNING on linus/master v6.19-rc4 next-20260109]
[cannot apply to rust/pin-init-next]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url: https://github.com/intel-lab-lkp/linux/commits/Benno-Lossin/rust-pin-init-allow-the-crate-to-refer-to-itself-as-pin-init-in-doc-tests/20260108-234753
base: https://github.com/Rust-for-Linux/linux rust-next
patch link: https://lore.kernel.org/r/20260108135127.3153925-7-lossin%40kernel.org
patch subject: [PATCH 06/12] rust: pin-init: rewrite `#[pin_data]` using `syn`
config: x86_64-rhel-9.4-rust (https://download.01.org/0day-ci/archive/20260109/202601090815.gvBfNWeh-lkp@xxxxxxxxx/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
rustc: rustc 1.88.0 (6b00bc388 2025-06-23)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260109/202601090815.gvBfNWeh-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202601090815.gvBfNWeh-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

>> warning: hidden lifetime parameters in types are deprecated
--> rust/pin-init/internal/src/pin_data.rs:24:33
|
24 | fn parse(input: syn::parse::ParseStream) -> Result<Self> {
| ------------^^^^^^^^^^^
| |
| expected lifetime parameter
|
= note: `-W elided-lifetimes-in-paths` implied by `-W rust-2018-idioms`
= help: to override `-W rust-2018-idioms` add `#[allow(elided_lifetimes_in_paths)]`
help: indicate the anonymous lifetime
|
24 | fn parse(input: syn::parse::ParseStream<'_>) -> Result<Self> {
| ++++

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki