diff --git a/tokio-test/src/lib.rs b/tokio-test/src/lib.rs index 35f2a9b02..62aa2f7c5 100644 --- a/tokio-test/src/lib.rs +++ b/tokio-test/src/lib.rs @@ -5,7 +5,7 @@ rust_2018_idioms, unreachable_pub )] -#![deny(intra_doc_link_resolution_failure)] +#![deny(broken_intra_doc_links)] #![doc(test( no_crate_inject, attr(deny(warnings, rust_2018_idioms), allow(dead_code, unused_variables)) diff --git a/tokio/src/time/delay_queue.rs b/tokio/src/time/delay_queue.rs index 7b20c1aee..b02153b9e 100644 --- a/tokio/src/time/delay_queue.rs +++ b/tokio/src/time/delay_queue.rs @@ -33,7 +33,7 @@ use std::task::{self, Poll}; /// /// # `Stream` implementation /// -/// Items are retrieved from the queue via [`Stream::poll_expired`]. If no delays have +/// Items are retrieved from the queue via [`DelayQueue::poll_expired`]. If no delays have /// expired, no items are returned. In this case, `NotReady` is returned and the /// current task is registered to be notified once the next item's delay has /// expired.