Skip to content

Commit e027b57

Browse files
authored
Rollup merge of #75955 - camelid:intra-doc-links-for-future-and-dec2flt, r=jyn514
Use intra-doc links in `core::future::future` and `core::num::dec2flt` Part of #75080. @rustbot modify labels: A-intra-doc-links T-doc
2 parents cbe3aef + 39cd184 commit e027b57

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

library/core/src/future/future.rs

+4-6
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ use crate::task::{Context, Poll};
2323
/// When using a future, you generally won't call `poll` directly, but instead
2424
/// `.await` the value.
2525
///
26-
/// [`Waker`]: ../task/struct.Waker.html
26+
/// [`Waker`]: crate::task::Waker
2727
#[doc(spotlight)]
2828
#[must_use = "futures do nothing unless you `.await` or poll them"]
2929
#[stable(feature = "futures_api", since = "1.36.0")]
@@ -91,11 +91,9 @@ pub trait Future {
9191
/// (memory corruption, incorrect use of `unsafe` functions, or the like),
9292
/// regardless of the future's state.
9393
///
94-
/// [`Poll::Pending`]: ../task/enum.Poll.html#variant.Pending
95-
/// [`Poll::Ready(val)`]: ../task/enum.Poll.html#variant.Ready
96-
/// [`Context`]: ../task/struct.Context.html
97-
/// [`Waker`]: ../task/struct.Waker.html
98-
/// [`Waker::wake`]: ../task/struct.Waker.html#method.wake
94+
/// [`Poll::Ready(val)`]: Poll::Ready
95+
/// [`Waker`]: crate::task::Waker
96+
/// [`Waker::wake`]: crate::task::Waker::wake
9997
#[lang = "poll"]
10098
#[stable(feature = "futures_api", since = "1.36.0")]
10199
fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output>;

library/core/src/num/dec2flt/mod.rs

-4
Original file line numberDiff line numberDiff line change
@@ -166,10 +166,6 @@ from_str_float_impl!(f64);
166166
///
167167
/// This error is used as the error type for the [`FromStr`] implementation
168168
/// for [`f32`] and [`f64`].
169-
///
170-
/// [`FromStr`]: ../str/trait.FromStr.html
171-
/// [`f32`]: ../../std/primitive.f32.html
172-
/// [`f64`]: ../../std/primitive.f64.html
173169
#[derive(Debug, Clone, PartialEq, Eq)]
174170
#[stable(feature = "rust1", since = "1.0.0")]
175171
pub struct ParseFloatError {

0 commit comments

Comments
 (0)