llvm.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [rust:rust-dev 17/25] error[E0107]: struct takes 2 generic arguments but 1 generic argument was supplied
@ 2024-10-05 11:13 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-10-05 11:13 UTC (permalink / raw)
  To: Danilo Krummrich
  Cc: llvm, oe-kbuild-all, Miguel Ojeda, Boqun Feng, Alice Ryhl,
	Benno Lossin, Gary Guo

tree:   https://github.com/Rust-for-Linux/linux rust-dev
head:   5073a77b6f60610ba3d2add41b6b743e4b05b53b
commit: 45e28f135821b99aa094fb78af769532128e4ca9 [17/25] rust: alloc: add `Vec` to prelude
config: um-randconfig-001-20241004 (https://download.01.org/0day-ci/archive/20241005/202410051918.NQT4lxAj-lkp@intel.com/config)
compiler: clang version 20.0.0git (https://github.com/llvm/llvm-project fef3566a25ff0e34fb87339ba5e13eca17cec00f)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241005/202410051918.NQT4lxAj-lkp@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202410051918.NQT4lxAj-lkp@intel.com/

All errors (new ones prefixed by >>):

>> error[E0107]: struct takes 2 generic arguments but 1 generic argument was supplied
   --> mm/kasan/kasan_test_rust.rs:14:16
   |
   14 |     let mut v: Vec<u8> = Vec::new();
   |                ^^^ -- supplied 1 generic argument
   |                |
   |                expected 2 generic arguments
   |
   note: struct defined here, with 2 generic parameters: `T`, `A`
   --> rust/kernel/alloc/kvec.rs:92:12
   |
   92 | pub struct Vec<T, A: Allocator> {
   |            ^^^ -  -
   help: add missing generic argument
   |
   14 |     let mut v: Vec<u8, A> = Vec::new();
   |                      +++

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for GET_FREE_REGION
   Depends on [n]: SPARSEMEM [=n]
   Selected by [y]:
   - RESOURCE_KUNIT_TEST [=y] && RUNTIME_TESTING_MENU [=y] && KUNIT [=y]

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-10-05 11:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-05 11:13 [rust:rust-dev 17/25] error[E0107]: struct takes 2 generic arguments but 1 generic argument was supplied kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).