public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
* [asahilinux:bits/250-aop 15/68] error: cannot find macro `vec` in this scope
@ 2026-04-07  3:56 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-04-07  3:56 UTC (permalink / raw)
  To: Janne Grunau; +Cc: llvm, oe-kbuild-all

tree:   https://github.com/AsahiLinux/linux bits/250-aop
head:   f7a3080ba37b989ad2fd83054a4b458af97b635d
commit: 76aa8a8de9fb5488da45a470fada7e8d6bfcd5ca [15/68] rust: alloc: vec: Add TryFrom trait
config: x86_64-randconfig-073-20260404 (https://download.01.org/0day-ci/archive/20260405/202604050253.RkhQPGru-lkp@intel.com/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/20260405/202604050253.RkhQPGru-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/202604050253.RkhQPGru-lkp@intel.com/

All errors (new ones prefixed by >>):

>> error: cannot find macro `vec` in this scope
   --> rust/doctests_kernel_generated.rs:1557:19
   |
   1557 | assert_eq!(r, Err(vec![0, 1, 2, 3, 4, 5, 6, 7, 8, 9]));
   |                   ^^^
--
>> error: cannot find macro `vec` in this scope
   --> rust/doctests_kernel_generated.rs:1504:12
   |
   1504 | assert_eq!(vec![1, 2, 3].try_into(), Ok([1, 2, 3]));
   |            ^^^
--
>> error[E0107]: struct takes 2 generic arguments but 1 generic argument was supplied
   --> rust/doctests_kernel_generated.rs:1505:13
   |
   1505 | assert_eq!(<Vec<i32>>::new().try_into(), Ok([]));
   |             ^^^ --- supplied 1 generic argument
   |             |
   |             expected 2 generic arguments
   |
   note: struct defined here, with 2 generic parameters: `T`, `A`
   --> rust/kernel/alloc/kvec.rs:104:12
   |
   104  | pub struct Vec<T, A: Allocator> {
   |            ^^^ -  -
   help: add missing generic argument
   |
   1505 | assert_eq!(<Vec<i32, A>>::new().try_into(), Ok([]));
   |                    +++
--
>> error[E0107]: struct takes 2 generic arguments but 1 generic argument was supplied
   --> rust/doctests_kernel_generated.rs:1556:48
   |
   1556 | let r: Result<[i32; 4], _> = (0..10).collect::<Vec<_>>().try_into();
   |                                                ^^^ - supplied 1 generic argument
   |                                                |
   |                                                expected 2 generic arguments
   |
   note: struct defined here, with 2 generic parameters: `T`, `A`
   --> rust/kernel/alloc/kvec.rs:104:12
   |
   104  | pub struct Vec<T, A: Allocator> {
   |            ^^^ -  -
   help: add missing generic argument
   |
   1556 | let r: Result<[i32; 4], _> = (0..10).collect::<Vec<_, _>>().try_into();
   |                                                     +++
--
>> error[E0433]: failed to resolve: use of undeclared type `String`
   --> rust/doctests_kernel_generated.rs:1608:13
   |
   1608 | let mut v = String::from("hello world").into_bytes();
   |             ^^^^^^ use of undeclared type `String`

-- 
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:[~2026-04-07  3:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-07  3:56 [asahilinux:bits/250-aop 15/68] error: cannot find macro `vec` in this scope 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