about summary refs log tree commit diff
path: root/library/alloc
diff options
context:
space:
mode:
authorKevin Reid <kpreid@switchb.org>2024-02-10 22:16:18 -0800
committerKevin Reid <kpreid@switchb.org>2024-02-10 22:17:11 -0800
commita6c91f0ae33ade5a495ee7124b41a05157723006 (patch)
treee8dfb6fca3335262301621e48d93d3fb386caaaa /library/alloc
parentcef46f9e3dca21fc9da6206177af43bb1ce7e664 (diff)
downloadrust-a6c91f0ae33ade5a495ee7124b41a05157723006.tar.gz
rust-a6c91f0ae33ade5a495ee7124b41a05157723006.zip
Remove the link.
Diffstat (limited to 'library/alloc')
-rw-r--r--library/alloc/src/task.rs9
1 files changed, 5 insertions, 4 deletions
diff --git a/library/alloc/src/task.rs b/library/alloc/src/task.rs
index 1409c2d4d34..b214f4946b1 100644
--- a/library/alloc/src/task.rs
+++ b/library/alloc/src/task.rs
@@ -29,12 +29,13 @@ use core::task::Waker;
 /// exists as an alternative for those systems.
 ///
 /// To construct a [`Waker`] from some type `W` implementing this trait,
-/// wrap it in an [`Arc<W>`](Arc) and call [`Waker::from()`][wi].
+/// wrap it in an [`Arc<W>`](Arc) and call `Waker::from()` on that.
 /// It is also possible to convert to [`RawWaker`] in the same way.
 ///
-/// <!-- This impl is reachable from `alloc` but rustdoc only lists it in `std`
-///      because `alloc` doesn't reexport `Waker` -->
-/// [wi]: ../../std/task/struct.Waker.html#impl-From%3CArc%3CW,+Global%3E%3E-for-Waker
+/// <!-- Ideally we'd link to the `From` impl, but rustdoc doesn't generate any page for it within
+///      `alloc` because `alloc` neither defines nor re-exports `From` or `Waker`, and we can't
+///      link ../../std/task/struct.Waker.html#impl-From%3CArc%3CW,+Global%3E%3E-for-Waker
+///      without getting a link-checking error in CI. -->
 ///
 /// # Examples
 ///