[asahilinux:asahi-wip-7.2 656/964] warning: explicit call to `.into_iter()` in function argument accepting `IntoIterator`
kernel test robot <[email protected]>
| Newsgroups | dev.linux.lists.oe-kbuild-all |
|---|---|
| Message-ID | <[email protected]> |
tree: https://github.com/AsahiLinux/linux asahi-wip-7.2 head: 57124f5176e4a4ceb553942a5f3de94cb5035877 commit: f1bd025505718f950b0925e7d578961d4c553f40 [656/964] rust: macros: Add versions macro config: x86_64-rhel-9.4-rust (https://download.01.org/0day-ci/archive/20260824/[email protected]/config) compiler: clang version 22.1.8 (https://github.com/llvm/llvm-project ca7933e47d3a3451d81e72ac174dcb5aa28b59d1) rustc: rustc 1.96.0 (ac68faa20 2026-05-25) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260824/[email protected]/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 <[email protected]> | Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ All warnings (new ones prefixed by >>): >> warning: explicit call to `.into_iter()` in function argument accepting `IntoIterator` --> rust/macros/versions.rs:261:55 | 261 | filter_versions(config, tag, ver, group.stream().into_iter(), is_struct); | ^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: this parameter accepts any `IntoIterator`, so you don't need to call `.into_iter()` --> rust/macros/versions.rs:176:16 | 176 | tree: impl IntoIterator<Item = TokenTree>, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.96.0/index.html#useless_conversion = note: `-W clippy::useless-conversion` implied by `-W clippy::all` = help: to override `-W clippy::all` add `#[allow(clippy::useless_conversion)]` help: consider removing the `.into_iter()` | 261 - filter_versions(config, tag, ver, group.stream().into_iter(), is_struct); 261 + filter_versions(config, tag, ver, group.stream(), is_struct); | -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki