Skip to content

Commit ce0e7c9

Browse files
committed
futures-util: Allow missing_debug_implementations on WakerToHandle
Fixes this error on ToT: ``` error: type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation --> futures-util/src/compat/compat01as03.rs:325:1 | 325 | struct WakerToHandle<'a>(&'a task03::Waker); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: `-D missing-debug-implementations` implied by `-D warnings` ``` Tested: - `cargo fmt`. - `cargo doc`. - `cargo test`.
1 parent 5ac72c7 commit ce0e7c9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

futures-util/src/compat/compat01as03.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,9 @@ where
321321

322322
struct NotifyWaker(task03::Waker);
323323

324+
// rustc regression is causing the missing_debug_implementations issue:
325+
// https://github.com/rust-lang/rust/issues/111359
326+
#[allow(missing_debug_implementations)]
324327
#[derive(Clone)]
325328
struct WakerToHandle<'a>(&'a task03::Waker);
326329

0 commit comments

Comments
 (0)