Skip to content

Commit 5f325e9

Browse files
committed
fix some links
1 parent 6fb2545 commit 5f325e9

9 files changed

+10
-27
lines changed

src/doc/book/src/README.md

-2
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,13 @@ is the first. After this:
2121
* [Tutorial: Guessing Game][gg] - Learn some Rust with a small project.
2222
* [Syntax and Semantics][ss] - Each bit of Rust, broken down into small chunks.
2323
* [Effective Rust][er] - Higher-level concepts for writing excellent Rust code.
24-
* [Nightly Rust][nr] - Cutting-edge features that aren’t in stable builds yet.
2524
* [Glossary][gl] - A reference of terms used in the book.
2625
* [Bibliography][bi] - Background on Rust's influences, papers about Rust.
2726

2827
[gs]: getting-started.html
2928
[gg]: guessing-game.html
3029
[er]: effective-rust.html
3130
[ss]: syntax-and-semantics.html
32-
[nr]: nightly-rust.html
3331
[gl]: glossary.html
3432
[bi]: bibliography.html
3533

src/doc/book/src/casting-between-types.md

+3-6
Original file line numberDiff line numberDiff line change
@@ -151,12 +151,9 @@ elements of the array. These kinds of casts are very dangerous, because they
151151
make assumptions about the way that multiple underlying structures are
152152
implemented. For this, we need something more dangerous.
153153

154-
The `transmute` function is provided by a [compiler intrinsic][intrinsics], and
155-
what it does is very simple, but very scary. It tells Rust to treat a value of
156-
one type as though it were another type. It does this regardless of the
157-
typechecking system, and completely trusts you.
158-
159-
[intrinsics]: intrinsics.html
154+
The `transmute` function is very simple, but very scary. It tells Rust to treat
155+
a value of one type as though it were another type. It does this regardless of
156+
the typechecking system, and completely trusts you.
160157

161158
In our previous example, we know that an array of four `u8`s represents a `u32`
162159
properly, and so we want to do the cast. Using `transmute` instead of `as`,

src/doc/book/src/conditional-compilation.md

+1-4
Original file line numberDiff line numberDiff line change
@@ -79,16 +79,13 @@ Will be the same as `#[b]` if `a` is set by `cfg` attribute, and nothing otherwi
7979

8080
# cfg!
8181

82-
The `cfg!` [syntax extension][compilerplugins] lets you use these kinds of flags
83-
elsewhere in your code, too:
82+
The `cfg!` macro lets you use these kinds of flags elsewhere in your code, too:
8483

8584
```rust
8685
if cfg!(target_os = "macos") || cfg!(target_os = "ios") {
8786
println!("Think Different!");
8887
}
8988
```
9089

91-
[compilerplugins]: compiler-plugins.html
92-
9390
These will be replaced by a `true` or `false` at compile-time, depending on the
9491
configuration settings.

src/doc/book/src/macros.md

-9
Original file line numberDiff line numberDiff line change
@@ -761,12 +761,3 @@ to typecheck, and don’t want to worry about writing out the body of the
761761
function. One example of this situation is implementing a trait with multiple
762762
required methods, where you want to tackle one at a time. Define the others
763763
as `unimplemented!` until you’re ready to write them.
764-
765-
# Procedural macros
766-
767-
If Rust’s macro system can’t do what you need, you may want to write a
768-
[compiler plugin](compiler-plugins.html) instead. Compared to `macro_rules!`
769-
macros, this is significantly more work, the interfaces are much less stable,
770-
and bugs can be much harder to track down. In exchange you get the
771-
flexibility of running arbitrary Rust code within the compiler. Syntax
772-
extension plugins are sometimes called ‘procedural macros’ for this reason.

src/doc/book/src/unsafe.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -139,4 +139,4 @@ I’ll repeat again: even though you _can_ do arbitrary things in unsafe blocks
139139
and functions doesn’t mean you should. The compiler will act as though you’re
140140
upholding its invariants, so be careful!
141141

142-
[intrinsics]: intrinsics.html
142+
[intrinsics]: ../unstable-book/intrinsics.html

src/doc/book/src/using-rust-without-the-standard-library.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ don’t want to use the standard library via an attribute: `#![no_std]`.
99
> Note: This feature is technically stable, but there are some caveats. For
1010
> one, you can build a `#![no_std]` _library_ on stable, but not a _binary_.
1111
> For details on binaries without the standard library, see [the nightly
12-
> chapter on `#![no_std]`](no-stdlib.html)
12+
> chapter on 'lang items'](../unstable-book/lang-items.html#using-libc)
1313
1414
To use `#![no_std]`, add it to your crate root:
1515

src/doc/unstable-book/src/alloc-jemalloc.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ The tracking issue for this feature is: [#33082]
44

55
[#33082]: https://github.com/rust-lang/rust/issues/33082
66

7-
See also [`alloc_system`](alloc-system.md).
7+
See also [`alloc_system`](alloc-system.html).
88

99
------------------------
1010

src/doc/unstable-book/src/alloc-system.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ The tracking issue for this feature is: [#33082]
44

55
[#33082]: https://github.com/rust-lang/rust/issues/33082
66

7-
See also [`alloc_jemalloc`](alloc-jemalloc.md).
7+
See also [`alloc_jemalloc`](alloc-jemalloc.html).
88

99
------------------------
1010

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ of a library.
3939

4040
Plugins can extend Rust's syntax in various ways. One kind of syntax extension
4141
is the procedural macro. These are invoked the same way as [ordinary
42-
macros](macros.html), but the expansion is performed by arbitrary Rust
42+
macros](../book/macros.html), but the expansion is performed by arbitrary Rust
4343
code that manipulates syntax trees at
4444
compile time.
4545

@@ -137,7 +137,7 @@ enum. For a more involved macro example, see
137137

138138
## Tips and tricks
139139

140-
Some of the [macro debugging tips](macros.html#Debugging%20macro%20code) are applicable.
140+
Some of the [macro debugging tips](../book/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:

0 commit comments

Comments
 (0)