Skip to content

Commit edd83c5

Browse files
committed
Fix linkcheck failures
1 parent 1ff9110 commit edd83c5

8 files changed

+32
-32
lines changed

book.toml

+19-19
Original file line numberDiff line numberDiff line change
@@ -8,27 +8,27 @@ git-repository-url = "https://github.com/rust-lang/nomicon"
88

99
[output.html.redirect]
1010
# Vec-related chapters.
11-
"/vec-alloc.html" = "/vec/vec-alloc.html"
12-
"/vec-dealloc.html" = "/vec/vec-dealloc.html"
13-
"/vec-deref.html" = "/vec/vec-deref.html"
14-
"/vec-drain.html" = "/vec/vec-drain.html"
15-
"/vec-final.html" = "/vec/vec-final.html"
16-
"/vec-insert-remove.html" = "/vec/vec-insert-remove.html"
17-
"/vec-into-iter.html" = "/vec/vec-into-iter.html"
18-
"/vec-layout.html" = "/vec/vec-layout.html"
19-
"/vec-push-pop.html" = "/vec/vec-push-pop.html"
20-
"/vec-raw.html" = "/vec/vec-raw.html"
21-
"/vec-zsts.html" = "/vec/vec-zsts.html"
22-
"/vec.html" = "/vec/vec.html"
11+
"./vec-alloc.html" = "./vec/vec-alloc.html"
12+
"./vec-dealloc.html" = "./vec/vec-dealloc.html"
13+
"./vec-deref.html" = "./vec/vec-deref.html"
14+
"./vec-drain.html" = "./vec/vec-drain.html"
15+
"./vec-final.html" = "./vec/vec-final.html"
16+
"./vec-insert-remove.html" = "./vec/vec-insert-remove.html"
17+
"./vec-into-iter.html" = "./vec/vec-into-iter.html"
18+
"./vec-layout.html" = "./vec/vec-layout.html"
19+
"./vec-push-pop.html" = "./vec/vec-push-pop.html"
20+
"./vec-raw.html" = "./vec/vec-raw.html"
21+
"./vec-zsts.html" = "./vec/vec-zsts.html"
22+
"./vec.html" = "./vec/vec.html"
2323

2424
# Arc and Mutex related chapters.
25-
"/arc-and-mutex.html" = "/arc-mutex/arc-and-mutex.html"
26-
"/arc-base.html" = "/arc-mutex/arc-base.html"
27-
"/arc-clone.html" = "/arc-mutex/arc-clone.html"
28-
"/arc-drop.html" = "/arc-mutex/arc-drop.html"
29-
"/arc-final.html" = "/arc-mutex/arc-final.html"
30-
"/arc-layout.html" = "/arc-mutex/arc-layout.html"
31-
"/arc.html" = "/arc-mutex/arc.html"
25+
"./arc-and-mutex.html" = "./arc-mutex/arc-and-mutex.html"
26+
"./arc-base.html" = "./arc-mutex/arc-base.html"
27+
"./arc-clone.html" = "./arc-mutex/arc-clone.html"
28+
"./arc-drop.html" = "./arc-mutex/arc-drop.html"
29+
"./arc-final.html" = "./arc-mutex/arc-final.html"
30+
"./arc-layout.html" = "./arc-mutex/arc-layout.html"
31+
"./arc.html" = "./arc-mutex/arc.html"
3232

3333
[rust]
3434
edition = "2018"

src/arc-mutex/arc-base.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ impl<T> Arc<T> {
3434
Since we're building a concurrency primitive, we'll need to be able to send it
3535
across threads. Thus, we can implement the `Send` and `Sync` marker traits. For
3636
more information on these, see [the section on `Send` and
37-
`Sync`](send-and-sync.md).
37+
`Sync`](../send-and-sync.md).
3838

3939
This is okay because:
4040
* You can only get a mutable reference to the value inside an `Arc` if and only

src/arc-mutex/arc-clone.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ happens-before relationship but is atomic. When `Drop`ping the Arc, however,
2626
we'll need to atomically synchronize when decrementing the reference count. This
2727
is described more in [the section on the `Drop` implementation for
2828
`Arc`](arc-drop.md). For more information on atomic relationships and Relaxed
29-
ordering, see [the section on atomics](atomics.md).
29+
ordering, see [the section on atomics](../atomics.md).
3030

3131
Thus, the code becomes this:
3232

src/arc-mutex/arc-layout.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ be used where an `Arc<&'a str>` was expected. More importantly, it will give
4141
incorrect ownership information to the drop checker, as it will assume we don't
4242
own any values of type `T`. As this is a structure providing shared ownership of
4343
a value, at some point there will be an instance of this structure that entirely
44-
owns its data. See [the chapter on ownership and lifetimes](ownership.md) for
44+
owns its data. See [the chapter on ownership and lifetimes](../ownership.md) for
4545
all the details on variance and drop check.
4646

4747
To fix the first problem, we can use `NonNull<T>`. Note that `NonNull<T>` is a

src/arc-mutex/arc.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Implementing Arc
22

33
In this section, we'll be implementing a simpler version of `std::sync::Arc`.
4-
Similarly to [the implementation of `Vec` we made earlier](vec.md), we won't be
4+
Similarly to [the implementation of `Vec` we made earlier](../vec/vec.md), we won't be
55
taking advantage of as many optimizations, intrinsics, or unstable code as the
66
standard library may.
77

src/vec/vec-alloc.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -202,9 +202,9 @@ impl<T> Vec<T> {
202202
# fn main() {}
203203
```
204204

205-
[Global]: ../std/alloc/struct.Global.html
206-
[handle_alloc_error]: ../alloc/alloc/fn.handle_alloc_error.html
207-
[alloc]: ../alloc/alloc/fn.alloc.html
208-
[realloc]: ../alloc/alloc/fn.realloc.html
209-
[dealloc]: ../alloc/alloc/fn.dealloc.html
210-
[std_alloc]: ../alloc/alloc/index.html
205+
[Global]: ../../std/alloc/struct.Global.html
206+
[handle_alloc_error]: ../../alloc/alloc/fn.handle_alloc_error.html
207+
[alloc]: ../../alloc/alloc/fn.alloc.html
208+
[realloc]: ../../alloc/alloc/fn.realloc.html
209+
[dealloc]: ../../alloc/alloc/fn.dealloc.html
210+
[std_alloc]: ../../alloc/alloc/index.html

src/vec/vec-drain.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -149,4 +149,4 @@ impl<T> Vec<T> {
149149
For more details on the `mem::forget` problem, see the
150150
[section on leaks][leaks].
151151

152-
[leaks]: leaking.html
152+
[leaks]: ../leaking.html

src/vec/vec-layout.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,5 @@ unsafe impl<T: Sync> Sync for Vec<T> {}
5656
# fn main() {}
5757
```
5858

59-
[ownership]: ownership.html
60-
[NonNull]: ../std/ptr/struct.NonNull.html
59+
[ownership]: ../ownership.html
60+
[NonNull]: ../../std/ptr/struct.NonNull.html

0 commit comments

Comments
 (0)