tree: git://anongit.freedesktop.org/drm/drm-misc topic/rust-drm head: fbe8094e2cd8106e88e348ed3ce97680d7ae9e7b commit: 5aad7a29ba6037a224c3f8ff36bfb2c82a5d3f4d [8/18] rust: add revocable objects config: x86_64-randconfig-003-20240401 (https://download.01.org/0day-ci/archive/20240402/202404020229.fdzDQ9lB-lkp@xxxxxxxxx/config) compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240402/202404020229.fdzDQ9lB-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/202404020229.fdzDQ9lB-lkp@xxxxxxxxx/ All errors (new ones prefixed by >>): >> error[E0308]: mismatched types --> rust/doctests_kernel_generated.rs:2184:20 | 2184 | assert_eq!(add_two(&v), Some(30)); | ------- ^^ expected `&Revocable<Example>`, found `&impl PinInit<Revocable<Example>>` | | | arguments to this function are incorrect | ::: rust/kernel/revocable.rs:90:42 | 90 | pub fn new(data: impl PinInit<T>) -> impl PinInit<Self> { | ------------------ the found opaque type | = note: expected reference `&Revocable<_doctest_main__kbuild_src_consumer_rust_kernel_revocable_rs_78_0::Example>` found reference `&impl rust_doctest_kernel_build_assert_rs_0::kernel::init::PinInit<Revocable<_doctest_main__kbuild_src_consumer_rust_kernel_revocable_rs_78_0::Example>>` note: function defined here --> rust/doctests_kernel_generated.rs:2178:4 | 2178 | fn add_two(v: &Revocable<Example>) -> Option<u32> { | ^^^^^^^ ---------------------- -- >> error[E0599]: no method named `revoke` found for opaque type `impl PinInit<Revocable<Example>>` in the current scope --> rust/doctests_kernel_generated.rs:2185:3 | 2185 | v.revoke(); | ^^^^^^ method not found in `impl PinInit<Revocable<Example>>` | = note: the full type name has been written to 'rust/doctests_kernel_generated.long-type-7986498715854771358.txt' -- >> error[E0308]: mismatched types --> rust/doctests_kernel_generated.rs:2186:20 | 2186 | assert_eq!(add_two(&v), None); | ------- ^^ expected `&Revocable<Example>`, found `&impl PinInit<Revocable<Example>>` | | | arguments to this function are incorrect | ::: rust/kernel/revocable.rs:90:42 | 90 | pub fn new(data: impl PinInit<T>) -> impl PinInit<Self> { | ------------------ the found opaque type | = note: expected reference `&Revocable<_doctest_main__kbuild_src_consumer_rust_kernel_revocable_rs_78_0::Example>` found reference `&impl rust_doctest_kernel_build_assert_rs_0::kernel::init::PinInit<Revocable<_doctest_main__kbuild_src_consumer_rust_kernel_revocable_rs_78_0::Example>>` note: function defined here --> rust/doctests_kernel_generated.rs:2178:4 | 2178 | fn add_two(v: &Revocable<Example>) -> Option<u32> { | ^^^^^^^ ---------------------- -- >> error[E0308]: mismatched types --> rust/doctests_kernel_generated.rs:2249:20 | 2249 | assert_eq!(add_two(&v), Some(30)); | ------- ^^ expected `&Revocable<Example>`, found `&impl PinInit<Revocable<Example>>` | | | arguments to this function are incorrect | ::: rust/kernel/revocable.rs:90:42 | 90 | pub fn new(data: impl PinInit<T>) -> impl PinInit<Self> { | ------------------ the found opaque type | = note: expected reference `&Revocable<_doctest_main__kbuild_src_consumer_rust_kernel_revocable_rs_99_0::Example>` found reference `&impl rust_doctest_kernel_build_assert_rs_0::kernel::init::PinInit<Revocable<_doctest_main__kbuild_src_consumer_rust_kernel_revocable_rs_99_0::Example>>` note: function defined here --> rust/doctests_kernel_generated.rs:2242:4 | 2242 | fn add_two(v: &Revocable<Example>) -> Option<u32> { | ^^^^^^^ ---------------------- -- >> error[E0599]: no method named `revoke` found for opaque type `impl PinInit<Revocable<Example>>` in the current scope --> rust/doctests_kernel_generated.rs:2250:3 | 2250 | v.revoke(); | ^^^^^^ method not found in `impl PinInit<Revocable<Example>>` | = note: the full type name has been written to 'rust/doctests_kernel_generated.long-type-16004988436775023416.txt' -- >> error[E0308]: mismatched types --> rust/doctests_kernel_generated.rs:2251:20 | 2251 | assert_eq!(add_two(&v), None); | ------- ^^ expected `&Revocable<Example>`, found `&impl PinInit<Revocable<Example>>` | | | arguments to this function are incorrect | ::: rust/kernel/revocable.rs:90:42 | 90 | pub fn new(data: impl PinInit<T>) -> impl PinInit<Self> { | ------------------ the found opaque type | = note: expected reference `&Revocable<_doctest_main__kbuild_src_consumer_rust_kernel_revocable_rs_99_0::Example>` found reference `&impl rust_doctest_kernel_build_assert_rs_0::kernel::init::PinInit<Revocable<_doctest_main__kbuild_src_consumer_rust_kernel_revocable_rs_99_0::Example>>` note: function defined here --> rust/doctests_kernel_generated.rs:2242:4 | 2242 | fn add_two(v: &Revocable<Example>) -> Option<u32> { | ^^^^^^^ ---------------------- -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki