Skip to content

Commit d15dfe7

Browse files
committed
docs: fix broken intra-doc links that never worked
1 parent f59e7b4 commit d15dfe7

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

library/alloc/src/boxed.rs

-4
Original file line numberDiff line numberDiff line change
@@ -1093,7 +1093,6 @@ impl<T: ?Sized> Box<T> {
10931093
/// ```
10941094
///
10951095
/// [memory layout]: self#memory-layout
1096-
/// [`Layout`]: crate::Layout
10971096
#[stable(feature = "box_raw", since = "1.4.0")]
10981097
#[inline]
10991098
#[must_use = "call `drop(Box::from_raw(ptr))` if you intend to drop the `Box`"]
@@ -1148,7 +1147,6 @@ impl<T: ?Sized> Box<T> {
11481147
/// ```
11491148
///
11501149
/// [memory layout]: self#memory-layout
1151-
/// [`Layout`]: crate::Layout
11521150
#[unstable(feature = "box_vec_non_null", reason = "new API", issue = "130364")]
11531151
#[inline]
11541152
#[must_use = "call `drop(Box::from_non_null(ptr))` if you intend to drop the `Box`"]
@@ -1205,7 +1203,6 @@ impl<T: ?Sized, A: Allocator> Box<T, A> {
12051203
/// ```
12061204
///
12071205
/// [memory layout]: self#memory-layout
1208-
/// [`Layout`]: crate::Layout
12091206
#[unstable(feature = "allocator_api", issue = "32838")]
12101207
#[rustc_const_unstable(feature = "const_box", issue = "92521")]
12111208
#[inline]
@@ -1259,7 +1256,6 @@ impl<T: ?Sized, A: Allocator> Box<T, A> {
12591256
/// ```
12601257
///
12611258
/// [memory layout]: self#memory-layout
1262-
/// [`Layout`]: crate::Layout
12631259
#[unstable(feature = "allocator_api", issue = "32838")]
12641260
// #[unstable(feature = "box_vec_non_null", reason = "new API", issue = "130364")]
12651261
#[rustc_const_unstable(feature = "const_box", issue = "92521")]

library/core/src/task/wake.rs

+2-5
Original file line numberDiff line numberDiff line change
@@ -40,17 +40,14 @@ impl RawWaker {
4040
/// of the `vtable` as the first parameter.
4141
///
4242
/// It is important to consider that the `data` pointer must point to a
43-
/// thread safe type such as an `[Arc]<T: Send + Sync>`
43+
/// thread safe type such as an `Arc<T: Send + Sync>`
4444
/// when used to construct a [`Waker`]. This restriction is lifted when
4545
/// constructing a [`LocalWaker`], which allows using types that do not implement
46-
/// <code>[Send] + [Sync]</code> like `[Rc]<T>`.
46+
/// <code>[Send] + [Sync]</code> like `Rc<T>`.
4747
///
4848
/// The `vtable` customizes the behavior of a `Waker` which gets created
4949
/// from a `RawWaker`. For each operation on the `Waker`, the associated
5050
/// function in the `vtable` of the underlying `RawWaker` will be called.
51-
///
52-
/// [`Arc`]: std::sync::Arc
53-
/// [`Rc`]: std::rc::Rc
5451
#[inline]
5552
#[rustc_promotable]
5653
#[stable(feature = "futures_api", since = "1.36.0")]

0 commit comments

Comments
 (0)