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

Fix CI failure #2829

Merged
merged 6 commits into from
Feb 26, 2024
Merged

Fix CI failure #2829

merged 6 commits into from
Feb 26, 2024

Conversation

taiki-e
Copy link
Member

@taiki-e taiki-e commented Feb 25, 2024

No description provided.

```
error: the item `Box` is imported redundantly
  --> futures-core/src/future.rs:89:9
   |
89 |     use alloc::boxed::Box;
   |         ^^^^^^^^^^^^^^^^^
  --> /rustc/381d69953bb7c3390cec0fee200f24529cb6320f/library/std/src/prelude/mod.rs:115:13
   |
   = note: the item `Box` is already defined here
   |
   = note: `-D unused-imports` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(unused_imports)]`

error: the item `Box` is imported redundantly
   --> futures-core/src/stream.rs:203:9
    |
203 |     use alloc::boxed::Box;
    |         ^^^^^^^^^^^^^^^^^
   --> /rustc/381d69953bb7c3390cec0fee200f24529cb6320f/library/std/src/prelude/mod.rs:115:13
    |
    = note: the item `Box` is already defined here
```
```
warning: trait `AssertSync` is never used
   --> futures-core/src/task/__internal/atomic_waker.rs:209:15
    |
209 |         trait AssertSync: Sync {}
    |               ^^^^^^^^^^
    |
    = note: `#[warn(dead_code)]` on by default

warning: trait `AssertKinds` is never used
   --> futures-channel/src/mpsc/mod.rs:130:7
    |
130 | trait AssertKinds: Send + Sync + Clone {}
    |       ^^^^^^^^^^^
    |
    = note: `#[warn(dead_code)]` on by default

warning: trait `AssertSendSync` is never used
  --> futures-executor/src/thread_pool.rs:48:7
   |
48 | trait AssertSendSync: Send + Sync {}
   |       ^^^^^^^^^^^^^^
   |
   = note: `#[warn(dead_code)]` on by default

warning: trait `AssertSend` is never used
  --> futures-channel/tests/mpsc.rs:13:7
   |
13 | trait AssertSend: Send {}
   |       ^^^^^^^^^^
   |
   = note: `#[warn(dead_code)]` on by default
```
```
error: redundant explicit link target
   --> futures-executor/src/local_pool.rs:314:25
    |
314 | /// Use a [`LocalPool`](LocalPool) if you need finer-grained control over
    |            -----------  ^^^^^^^^^ explicit target is redundant
    |            |
    |            because label contains path that resolves to same destination
    |
    = note: when a link's destination is not specified,
            the label is used to resolve intra-doc links
    = note: `-D rustdoc::redundant-explicit-links` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(rustdoc::redundant_explicit_links)]`
help: remove explicit link target
    |
314 | /// Use a [`LocalPool`] if you need finer-grained control over
    |           ~~~~~~~~~~~~~

error: redundant explicit link target
  --> futures-executor/src/local_pool.rs:37:33
   |
37 | /// A handle to a [`LocalPool`](LocalPool) that implements
   |                    -----------  ^^^^^^^^^ explicit target is redundant
   |                    |
   |                    because label contains path that resolves to same destination
   |
   = note: when a link's destination is not specified,
           the label is used to resolve intra-doc links
help: remove explicit link target
   |
37 | /// A handle to a [`LocalPool`] that implements
   |                   ~~~~~~~~~~~~~
```
@taiki-e
Copy link
Member Author

taiki-e commented Feb 25, 2024

Hmm. rust-lang/rust#119863 seems to have caused regression.

---- ref_wake_same stdout ----
thread 'ref_wake_same' panicked at futures/tests/task_arc_wake.rs:56:5:
assertion failed: w2.will_wake(&w3)
stack backtrace:
   0: rust_begin_unwind
   1: core::panicking::panic_fmt
   2: core::panicking::panic
   3: core::ops::function::FnOnce::call_once
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.


failures:
    ref_wake_same

#[test]
fn ref_wake_same() {
let some_w = Arc::new(CountingWaker::new());
let w1: Waker = task::waker(some_w.clone());
let w2 = task::waker_ref(&some_w);
let w3 = w2.clone();
assert!(w1.will_wake(&w2));
assert!(w2.will_wake(&w3));
}

cc @tmiasko: Is this the regression you intended?

@taiki-e taiki-e merged commit 42c2ab0 into master Feb 26, 2024
24 checks passed
@taiki-e taiki-e deleted the ci branch February 26, 2024 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant