Re: [PATCH v2] rust: alloc: implement `extend` for `Vec`
From: kernel test robot
Date: Sun Apr 06 2025 - 08:00:50 EST
Hi Alexandre,
kernel test robot noticed the following build warnings:
[auto build test WARNING on a2cc6ff5ec8f91bc463fd3b0c26b61166a07eb11]
url: https://github.com/intel-lab-lkp/linux/commits/Alexandre-Courbot/rust-alloc-implement-extend-for-Vec/20250405-215300
base: a2cc6ff5ec8f91bc463fd3b0c26b61166a07eb11
patch link: https://lore.kernel.org/r/20250405-vec_extend-v2-1-e4a85af43cb3%40nvidia.com
patch subject: [PATCH v2] rust: alloc: implement `extend` for `Vec`
config: x86_64-rhel-9.4-rust (https://download.01.org/0day-ci/archive/20250406/202504061937.dH9ikiZo-lkp@xxxxxxxxx/config)
compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)
rustc: rustc 1.78.0 (9b00956e5 2024-04-29)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250406/202504061937.dH9ikiZo-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/202504061937.dH9ikiZo-lkp@xxxxxxxxx/
All warnings (new ones prefixed by >>):
>> warning: this `.into_iter()` call is equivalent to `.iter_mut()` and will not consume the `slice`
--> rust/kernel/alloc/kvec.rs:486:18
|
486 | .into_iter()
| ^^^^^^^^^ help: call directly: `iter_mut`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_ref
= note: `-W clippy::into-iter-on-ref` implied by `-W clippy::all`
= help: to override `-W clippy::all` add `#[allow(clippy::into_iter_on_ref)]`
--
>> warning: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `slice`
--> rust/kernel/alloc/kvec.rs:533:27
|
533 | self.extend(other.into_iter().cloned(), flags)
| ^^^^^^^^^ help: call directly: `iter`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_ref
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki