From: kernel test robot <lkp@intel.com>
To: Andreas Hindborg <a.hindborg@samsung.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
dri-devel@lists.freedesktop.org,
Danilo Krummrich <dakr@redhat.com>
Subject: [drm-misc:topic/rust-drm 8/18] error[E0308]: mismatched types
Date: Tue, 2 Apr 2024 02:58:24 +0800 [thread overview]
Message-ID: <202404020229.fdzDQ9lB-lkp@intel.com> (raw)
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@intel.com/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@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/202404020229.fdzDQ9lB-lkp@intel.com/
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
reply other threads:[~2024-04-01 18:59 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202404020229.fdzDQ9lB-lkp@intel.com \
--to=lkp@intel.com \
--cc=a.hindborg@samsung.com \
--cc=dakr@redhat.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox