Skip to content

Commit 9d2cfd4

Browse files
committed
Fix up various links
The unstable book, libstd, libcore, and liballoc all needed some adjustment.
1 parent 714ed07 commit 9d2cfd4

File tree

9 files changed

+20
-20
lines changed

9 files changed

+20
-20
lines changed

src/doc/unstable-book/src/plugin.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ of extensions. See `Registry::register_syntax_extension` and the
137137

138138
## Tips and tricks
139139

140-
Some of the [macro debugging tips](../book/macros.html#debugging-macro-code) are applicable.
140+
Some of the [macro debugging tips](../book/first-edition/macros.html#debugging-macro-code) are applicable.
141141

142142
You can use `syntax::parse` to turn token trees into
143143
higher-level syntax elements like expressions:

src/liballoc/arc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ const MAX_REFCOUNT: usize = (isize::MAX) as usize;
102102
/// [downgrade]: struct.Arc.html#method.downgrade
103103
/// [upgrade]: struct.Weak.html#method.upgrade
104104
/// [`None`]: ../../std/option/enum.Option.html#variant.None
105-
/// [assoc]: ../../book/method-syntax.html#associated-functions
105+
/// [assoc]: ../../book/first-edition/method-syntax.html#associated-functions
106106
///
107107
/// # Examples
108108
///

src/liballoc/rc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@
215215
//! [downgrade]: struct.Rc.html#method.downgrade
216216
//! [upgrade]: struct.Weak.html#method.upgrade
217217
//! [`None`]: ../../std/option/enum.Option.html#variant.None
218-
//! [assoc]: ../../book/method-syntax.html#associated-functions
218+
//! [assoc]: ../../book/first-edition/method-syntax.html#associated-functions
219219
//! [mutability]: ../../std/cell/index.html#introducing-mutability-inside-of-something-immutable
220220
221221
#![stable(feature = "rust1", since = "1.0.0")]

src/libcore/char.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ pub const MAX: char = '\u{10ffff}';
9494
///
9595
/// [`char`]: ../../std/primitive.char.html
9696
/// [`u32`]: ../../std/primitive.u32.html
97-
/// [`as`]: ../../book/casting-between-types.html#as
97+
/// [`as`]: ../../book/first-edition/casting-between-types.html#as
9898
///
9999
/// For an unsafe version of this function which ignores these checks, see
100100
/// [`from_u32_unchecked()`].
@@ -146,7 +146,7 @@ pub fn from_u32(i: u32) -> Option<char> {
146146
///
147147
/// [`char`]: ../../std/primitive.char.html
148148
/// [`u32`]: ../../std/primitive.u32.html
149-
/// [`as`]: ../../book/casting-between-types.html#as
149+
/// [`as`]: ../../book/first-edition/casting-between-types.html#as
150150
///
151151
/// # Safety
152152
///

src/libcore/iter/iterator.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ pub trait Iterator {
409409
/// If you're doing some sort of looping for a side effect, it's considered
410410
/// more idiomatic to use [`for`] than `map()`.
411411
///
412-
/// [`for`]: ../../book/loops.html#for
412+
/// [`for`]: ../../book/first-edition/loops.html#for
413413
///
414414
/// # Examples
415415
///
@@ -1306,7 +1306,7 @@ pub trait Iterator {
13061306
/// use a `for` loop with a list of things to build up a result. Those
13071307
/// can be turned into `fold()`s:
13081308
///
1309-
/// [`for`]: ../../book/loops.html#for
1309+
/// [`for`]: ../../book/first-edition/loops.html#for
13101310
///
13111311
/// ```
13121312
/// let numbers = [1, 2, 3, 4, 5];

src/libcore/mem.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ pub use intrinsics::transmute;
164164
/// [uninit]: fn.uninitialized.html
165165
/// [clone]: ../clone/trait.Clone.html
166166
/// [swap]: fn.swap.html
167-
/// [FFI]: ../../book/ffi.html
167+
/// [FFI]: ../../book/first-edition/ffi.html
168168
/// [box]: ../../std/boxed/struct.Box.html
169169
/// [into_raw]: ../../std/boxed/struct.Box.html#method.into_raw
170170
/// [ub]: ../../reference/behavior-considered-undefined.html
@@ -199,7 +199,7 @@ pub fn size_of<T>() -> usize {
199199
/// then `size_of_val` can be used to get the dynamically-known size.
200200
///
201201
/// [slice]: ../../std/primitive.slice.html
202-
/// [trait object]: ../../book/trait-objects.html
202+
/// [trait object]: ../../book/first-edition/trait-objects.html
203203
///
204204
/// # Examples
205205
///
@@ -317,7 +317,7 @@ pub fn align_of_val<T: ?Sized>(val: &T) -> usize {
317317
/// many of the same caveats.
318318
///
319319
/// [uninit]: fn.uninitialized.html
320-
/// [FFI]: ../../book/ffi.html
320+
/// [FFI]: ../../book/first-edition/ffi.html
321321
/// [ub]: ../../reference/behavior-considered-undefined.html
322322
///
323323
/// # Examples
@@ -343,7 +343,7 @@ pub unsafe fn zeroed<T>() -> T {
343343
/// This is useful for [FFI] functions and initializing arrays sometimes,
344344
/// but should generally be avoided.
345345
///
346-
/// [FFI]: ../../book/ffi.html
346+
/// [FFI]: ../../book/first-edition/ffi.html
347347
///
348348
/// # Undefined behavior
349349
///
@@ -525,7 +525,7 @@ pub fn replace<T>(dest: &mut T, mut src: T) -> T {
525525
/// it will not release any borrows, as borrows are based on lexical scope.
526526
///
527527
/// This effectively does nothing for
528-
/// [types which implement `Copy`](../../book/ownership.html#copy-types),
528+
/// [types which implement `Copy`](../../book/first-edition/ownership.html#copy-types),
529529
/// e.g. integers. Such values are copied and _then_ moved into the function,
530530
/// so the value persists after this function call.
531531
///

src/libcore/raw.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
/// Book][moreinfo] contains more details about the precise nature of
2626
/// these internals.
2727
///
28-
/// [moreinfo]: ../../book/trait-objects.html#representation
28+
/// [moreinfo]: ../../book/first-edition/trait-objects.html#representation
2929
///
3030
/// `TraitObject` is guaranteed to match layouts, but it is not the
3131
/// type of trait objects (e.g. the fields are not directly accessible

src/libstd/lib.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@
174174
//! [slice]: primitive.slice.html
175175
//! [`atomic`]: sync/atomic/index.html
176176
//! [`collections`]: collections/index.html
177-
//! [`for`]: ../book/loops.html#for
177+
//! [`for`]: ../book/first-edition/loops.html#for
178178
//! [`format!`]: macro.format.html
179179
//! [`fs`]: fs/index.html
180180
//! [`io`]: io/index.html
@@ -189,14 +189,14 @@
189189
//! [`sync`]: sync/index.html
190190
//! [`thread`]: thread/index.html
191191
//! [`use std::env`]: env/index.html
192-
//! [`use`]: ../book/crates-and-modules.html#importing-modules-with-use
193-
//! [crate root]: ../book/crates-and-modules.html#basic-terminology-crates-and-modules
192+
//! [`use`]: ../book/first-edition/crates-and-modules.html#importing-modules-with-use
193+
//! [crate root]: ../book/first-edition/crates-and-modules.html#basic-terminology-crates-and-modules
194194
//! [crates.io]: https://crates.io
195-
//! [deref coercions]: ../book/deref-coercions.html
195+
//! [deref coercions]: ../book/first-edition/deref-coercions.html
196196
//! [files]: fs/struct.File.html
197197
//! [multithreading]: thread/index.html
198198
//! [other]: #what-is-in-the-standard-library-documentation
199-
//! [primitive types]: ../book/primitive-types.html
199+
//! [primitive types]: ../book/first-edition/primitive-types.html
200200
201201
#![crate_name = "std"]
202202
#![stable(feature = "rust1", since = "1.0.0")]

src/libstd/primitive_docs.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
/// ```
3030
///
3131
/// [`assert!`]: macro.assert.html
32-
/// [`if`]: ../book/if.html
32+
/// [`if`]: ../book/first-edition/if.html
3333
/// [`BitAnd`]: ops/trait.BitAnd.html
3434
/// [`BitOr`]: ops/trait.BitOr.html
3535
/// [`Not`]: ops/trait.Not.html
@@ -490,7 +490,7 @@ mod prim_str { }
490490
/// assert_eq!(tuple.2, 'c');
491491
/// ```
492492
///
493-
/// For more about tuples, see [the book](../book/primitive-types.html#tuples).
493+
/// For more about tuples, see [the book](../book/first-edition/primitive-types.html#tuples).
494494
///
495495
/// # Trait implementations
496496
///

0 commit comments

Comments
 (0)