Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cargo test failures #4763

Closed
gftea opened this issue Jun 10, 2022 · 2 comments
Closed

cargo test failures #4763

gftea opened this issue Jun 10, 2022 · 2 comments
Labels
A-tokio Area: The main tokio crate C-bug Category: This is a bug.

Comments

@gftea
Copy link
Contributor

gftea commented Jun 10, 2022

Version

benches v0.0.0 (/home/gftea/repo/tokio/benches)
└── tokio v1.19.2 (/home/gftea/repo/tokio/tokio)
    └── tokio-macros v1.8.0 (proc-macro) (/home/gftea/repo/tokio/tokio-macros)
        └── tokio v1.19.2 (/home/gftea/repo/tokio/tokio) (*)
    ├── tokio-stream v0.1.9 (/home/gftea/repo/tokio/tokio-stream)
    │   └── tokio v1.19.2 (/home/gftea/repo/tokio/tokio) (*)
    │   ├── tokio v1.19.2 (/home/gftea/repo/tokio/tokio) (*)
    │   └── tokio-test v0.4.2 (/home/gftea/repo/tokio/tokio-test)
    │       ├── tokio v1.19.2 (/home/gftea/repo/tokio/tokio) (*)
    │       └── tokio-stream v0.1.9 (/home/gftea/repo/tokio/tokio-stream) (*)
    │       └── tokio v1.19.2 (/home/gftea/repo/tokio/tokio) (*)
    └── tokio-test v0.4.2 (/home/gftea/repo/tokio/tokio-test) (*)
├── tokio-stream v0.1.9 (/home/gftea/repo/tokio/tokio-stream) (*)
└── tokio-util v0.7.3 (/home/gftea/repo/tokio/tokio-util)
    ├── tokio v1.19.2 (/home/gftea/repo/tokio/tokio) (*)
    ├── tokio v1.19.2 (/home/gftea/repo/tokio/tokio) (*)
    ├── tokio-stream v0.1.9 (/home/gftea/repo/tokio/tokio-stream) (*)
    └── tokio-test v0.4.2 (/home/gftea/repo/tokio/tokio-test) (*)
examples v0.0.0 (/home/gftea/repo/tokio/examples)
├── tokio v1.19.2 (/home/gftea/repo/tokio/tokio) (*)
├── tokio-stream v0.1.9 (/home/gftea/repo/tokio/tokio-stream) (*)
├── tokio-util v0.7.3 (/home/gftea/repo/tokio/tokio-util) (*)
stress-test v0.1.0 (/home/gftea/repo/tokio/stress-test)
└── tokio v1.19.2 (/home/gftea/repo/tokio/tokio) (*)
tests-build v0.1.0 (/home/gftea/repo/tokio/tests-build)
tests-integration v0.1.0 (/home/gftea/repo/tokio/tests-integration)
└── tokio v1.19.2 (/home/gftea/repo/tokio/tokio) (*)
tokio v1.19.2 (/home/gftea/repo/tokio/tokio) (*)
tokio-macros v1.8.0 (proc-macro) (/home/gftea/repo/tokio/tokio-macros) (*)
tokio-stream v0.1.9 (/home/gftea/repo/tokio/tokio-stream) (*)
tokio-test v0.4.2 (/home/gftea/repo/tokio/tokio-test) (*)
tokio-util v0.7.3 (/home/gftea/repo/tokio/tokio-util) (*)

Platform
Linux E-CND1488614 5.10.102.1-microsoft-standard-WSL2 SMP Wed Mar 2 00:30:59 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

Description

error[E0432]: unresolved import `super::task::Task`
 --> /home/gftea/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-util-0.3.21/src/stream/futures_unordered/iter.rs:1:5
  |
1 | use super::task::Task;
  |     ^^^^^^^^^^^^^^^^^ no `Task` in `stream::futures_unordered::task`

error[E0432]: unresolved import `self::task::Task`
  --> /home/gftea/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-util-0.3.21/src/stream/futures_unordered/mod.rs:28:5
   |
28 | use self::task::Task;
   |     ^^^^^^^^^^^^^^^^ no `Task` in `stream::futures_unordered::task`

error[E0432]: unresolved import `super::task::Task`
 --> /home/gftea/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-util-0.3.21/src/stream/futures_unordered/ready_to_run_queue.rs:9:5
  |
9 | use super::task::Task;
  |     ^^^^^^^^^^^^^^^^^ no `Task` in `stream::futures_unordered::task`

error[E0392]: parameter `Fut` is never used
  --> /home/gftea/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-util-0.3.21/src/stream/futures_unordered/ready_to_run_queue.rs:11:25
   |
11 | pub(super) enum Dequeue<Fut> {
   |                         ^^^ unused parameter
   |
   = help: consider removing `Fut`, referring to it in a field, or using a marker such as `PhantomData`
   = help: if you intended `Fut` to be a const parameter, use `const Fut: usize` instead

error[E0392]: parameter `Fut` is never used
  --> /home/gftea/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-util-0.3.21/src/stream/futures_unordered/ready_to_run_queue.rs:17:35
   |
17 | pub(super) struct ReadyToRunQueue<Fut> {
   |                                   ^^^ unused parameter
   |
   = help: consider removing `Fut`, referring to it in a field, or using a marker such as `PhantomData`
   = help: if you intended `Fut` to be a const parameter, use `const Fut: usize` instead

error[E0392]: parameter `Fut` is never used
  --> /home/gftea/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-util-0.3.21/src/stream/futures_unordered/mod.rs:54:29
   |
54 | pub struct FuturesUnordered<Fut> {
   |                             ^^^ unused parameter
   |
   = help: consider removing `Fut`, referring to it in a field, or using a marker such as `PhantomData`
   = help: if you intended `Fut` to be a const parameter, use `const Fut: usize` instead

error[E0392]: parameter `Fut` is never used
  --> /home/gftea/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-util-0.3.21/src/stream/stream/for_each_concurrent.rs:14:38
   |
14 |     pub struct ForEachConcurrent<St, Fut, F> {
   |                                      ^^^ unused parameter
   |
   = help: consider removing `Fut`, referring to it in a field, or using a marker such as `PhantomData`
   = help: if you intended `Fut` to be a const parameter, use `const Fut: usize` instead

error[E0392]: parameter `Fut` is never used
  --> /home/gftea/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-util-0.3.21/src/stream/try_stream/try_for_each_concurrent.rs:16:41
   |
16 |     pub struct TryForEachConcurrent<St, Fut, F> {
   |                                         ^^^ unused parameter
   |
   = help: consider removing `Fut`, referring to it in a field, or using a marker such as `PhantomData`
   = help: if you intended `Fut` to be a const parameter, use `const Fut: usize` instead

error[E0392]: parameter `Fut` is never used
  --> /home/gftea/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-util-0.3.21/src/stream/futures_unordered/iter.rs:21:27
   |
21 | pub struct IterPinRef<'a, Fut> {
   |                           ^^^ unused parameter
   |
   = help: consider removing `Fut`, referring to it in a field, or using a marker such as `PhantomData`
   = help: if you intended `Fut` to be a const parameter, use `const Fut: usize` instead

error[E0392]: parameter `Fut` is never used
  --> /home/gftea/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-util-0.3.21/src/stream/futures_unordered/iter.rs:30:21
   |
30 | pub struct Iter<'a, Fut: Unpin>(pub(super) IterPinRef<'a, Fut>);
   |                     ^^^ unused parameter
   |
   = help: consider removing `Fut`, referring to it in a field, or using a marker such as `PhantomData`

error[E0392]: parameter `Fut` is never used
  --> /home/gftea/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-util-0.3.21/src/stream/futures_unordered/iter.rs:34:21
   |
34 | pub struct IntoIter<Fut: Unpin> {
   |                     ^^^ unused parameter
   |
   = help: consider removing `Fut`, referring to it in a field, or using a marker such as `PhantomData`

error[E0392]: parameter `St` is never used
  --> /home/gftea/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-util-0.3.21/src/stream/select_all.rs:30:26
   |
30 |     pub struct SelectAll<St> {
   |                          ^^ unused parameter
   |
   = help: consider removing `St`, referring to it in a field, or using a marker such as `PhantomData`
   = help: if you intended `St` to be a const parameter, use `const St: usize` instead

error[E0392]: parameter `St` is never used
   --> /home/gftea/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-util-0.3.21/src/stream/select_all.rs:192:21
    |
192 | pub struct Iter<'a, St: Unpin>(futures_unordered::Iter<'a, StreamFuture<St>>);
    |                     ^^ unused parameter
    |
    = help: consider removing `St`, referring to it in a field, or using a marker such as `PhantomData`

error[E0392]: parameter `St` is never used
   --> /home/gftea/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-util-0.3.21/src/stream/select_all.rs:200:21
    |
200 | pub struct IntoIter<St: Unpin>(futures_unordered::IntoIter<StreamFuture<St>>);
    |                     ^^ unused parameter
    |
    = help: consider removing `St`, referring to it in a field, or using a marker such as `PhantomData`

Some errors have detailed explanations: E0392, E0432.
For more information about an error, try `rustc --explain E0392`.
error: could not compile `futures-util` due to 14 previous errors
@gftea gftea added A-tokio Area: The main tokio crate C-bug Category: This is a bug. labels Jun 10, 2022
@Darksonn
Copy link
Contributor

This is probably not our fault. Can you try clearing your cargo registry cache?

@gftea
Copy link
Contributor Author

gftea commented Jun 10, 2022

thanks, it works as you suggested, remove the registry cache rm -rf /home/gftea/.cargo/registry/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-tokio Area: The main tokio crate C-bug Category: This is a bug.
Projects
None yet
Development

No branches or pull requests

2 participants